DEV3 Technologies home

Flutter code snippets

Dart widgets and state patterns for mobile apps. 30 free snippets, each with an explanation and usage notes.
30
snippets
1
types

All snippets

Flutter · CardsWallet card with transaction listBalance card with gradient and quick actions above a transaction list that colours credits and debits.flutterwalletbalance Flutter · APIsToken-refreshing API clientHTTP wrapper that attaches a bearer token, refreshes it once on a 401 even for parallel calls, and retries the request.flutterhttpauth Flutter · ThemingThemeExtension colours for light and darkCustom semantic colours (success, warning, surface tints) added to ThemeData with a ThemeExtension that lerps between modes.flutterthemedarkmode Flutter · Feedback and empty statesShimmer loading product gridA dependency-free shimmer skeleton for product grids using a looping gradient ShaderMask while data loads.fluttershimmerskeleton Flutter · InternationalisationRTL and localization setupLocale-aware MaterialApp with a hand-written localisation delegate, switchable language and direction-safe layout helpers.flutterl10nrtl Flutter · Feedback and empty statesRating bottom sheetModal bottom sheet with tappable stars, optional quick tags and a comment box that returns a typed result to the caller.flutterratingbottomsheet Flutter · NotificationsPush notification permission flowAsk for notification permission at a good moment with a pre-prompt, then handle denied and permanently denied states gracefully.flutterpushpermission Flutter · UploadsProof of delivery photo and signatureCapture a recipient signature on a canvas, export it as PNG bytes and pair it with a photo from the camera.fluttersignaturecamera Flutter · PricingSubscription plan selectorSelectable plan cards with a monthly or yearly switch, savings label and an accessible radio-group structure.flutterpricingplans Flutter · AuthenticationPhone number login flowTwo-step phone sign-in with a small state machine, resend countdown and clear error handling around any backend.flutterloginphone Flutter · CardsParcel tracking timelineVertical timeline of shipment events with completed, current and pending states drawn with a connector line.fluttertimelinetracking Flutter · Feedback and empty statesPaginated list with pull-to-refreshInfinite scrolling list that loads the next page near the bottom, supports pull-to-refresh and shows an inline retry row on error.flutterpaginationlistview Flutter · AuthenticationOne-time code input boxesSix-box verification code field backed by one hidden text input, with paste, backspace and platform SMS autofill support.flutterotpinput Flutter · UtilitiesOnline/offline availability toggleOptimistic availability switch for couriers or drivers that rolls back on failure and sends periodic heartbeats while online.flutterswitchpresence Flutter · DatabaseOffline-first cached repositoryStale-while-revalidate repository that emits cached JSON instantly, refreshes from the network and survives being offline.fluttercacheoffline Flutter · LayoutsMulti-service home gridResponsive grid of service tiles with icons, optional badges and a data-driven list that adapts column count to width.fluttergridhome Flutter · UploadsImage picker with compressionPick several photos from gallery or camera, downscale and recompress them at pick time, and show removable thumbnails.flutterimagepicker Flutter · Feedback and empty statesEmpty and error state widgetsReusable placeholder widgets for empty lists, failures and offline screens with an icon, message and retry action.flutteremptystateerror Flutter · SearchDebounced search fieldSearch box that waits for a pause in typing before querying and ignores out-of-order responses from slower requests.fluttersearchdebounce Flutter · FormsDate and time slot pickerHorizontal day strip with a grid of time slot chips that disables unavailable slots and reports the chosen DateTime.flutterbookingcalendar Flutter · FormsCoupon code fieldPromo code input with apply and remove states, async validation, inline errors and a discount line item.fluttercoupondiscount Flutter · FormsValidated multi-step stepperWizard built on the Material Stepper where each step has its own validator and Continue is blocked until that step passes.flutterstepperwizard Flutter · CardsChat bubbles with day dividersMessage list with sent and received bubbles, grouped day separators, per-message time and RTL-safe alignment.flutterchatmessages Flutter · UtilitiesChangeNotifier shopping cart modelA small CartModel built on ChangeNotifier with add, remove, quantity and totals, wired into the UI through ListenableBuilder.flutterstatechangenotifier