Dart/Flutter snippets for quickly scaffolding list screens backed by a provider:
data loading, DataTable, text/dropdown/date filters, image cells and aggregates.
All snippets are scoped to Dart files and prefixed with f, so typing f in a
.dart file groups them together in IntelliSense.
Snippets
Prefix
Inserts
flist
Full list screen — imports, StatefulWidget, provider, loadData, build, search, table, item count
floaddata
loadData() with filter map
fdatatable
_buildDataTable() with DataTable
fcol
One DataColumn + matching DataCell
fsearch
_buildSearch() — text filter on every keystroke (onChanged)
fsearchbutton
_buildSearch() — text filter only on button press
fcontroller
TextEditingController field (for fsearchbutton)
fdropdownfilter
_buildFilters() with dropdown + reset button
fdropitem
One DropdownMenuItem
fdatefilter
_buildFilters() with search + From/To date buttons
Tab through the placeholders to fill in entity name, columns, filter keys, etc.
The templates assume an ecommerce_mobile package layout (models/, providers/,
layouts/master_screen.dart) and a provider.get(filter: ...) API returning a
SearchResult<T>. Adjust the imports/paths to match your project.
Notes
Some filter snippets need supporting state declared on the State class
(e.g. fdropdownfilter needs a String? selectedValue; fdatefilter needs the
fields from fpickdate). Each snippet's description lists what it needs.