Create Listing

Loading preview

Starting the Flutter app

A Flutter create-listing form with photo upload, category, price, and description fields.

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

Only _category and _condition live in state, each bound to a DropdownButtonFormField. The title, price and description TextFields have no controllers, so their contents can’t be read, and there’s no Form or validation. The photo row is three decorative tiles with no tap handling. _label is a small helper keeping field captions consistent.

Adapting it

  • Add a Form with TextFormFields and collect the values in the Post listing handler.
  • Attach image_picker to the Icons.add_a_photo_outlined tile.
  • Use TextInputType.numberWithOptions(decimal: true) on the price; plain TextInputType.number can hide the decimal key on iOS.