Listing Detail

Loading preview

Starting the Flutter app

A Flutter marketplace listing detail with an image gallery, seller card, and a buy button.

Get the source

Add it to your project

Copies the Dart source into your app, so you own it. Flutter SDK only, no extra packages.

First time? Run dart pub global activate fluttertemplates_dev, or read the CLI guide.

How it works

The gallery is a PageView over _colors, with _page updated from onPageChanged to light up the dot row layered on top by a Stack. Those “photos” are tinted Icons.chair placeholders. Message and Buy now sit in Scaffold’s bottomSheet, and a SizedBox(height: 90) at the end of the ListView keeps the description clear of them. The heart toggles _favorite, and listing and seller text are literals.

Adapting it

  • Pass in a listing model and replace _colors with image URLs.
  • Connect Buy now to checkout and Message to your chat flow.
  • If the bottomSheet height changes, update that 90px spacer to match.