Skip to content

pytholic/FlutterShoppingListApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Overview

A cross-platform Todo List App created using Dart and Flutter.

App Functionality

  • Add item and amount
  • Increase or decrease the amount using buttons
  • Delete the item
  • Firebase integration

Dev Notes

Increment Function with Buttons

Function definition:

void incrementAmount(BuildContext context, Item item) {
  final provider = Provider.of<ItemsProvider>(context, listen: false);
  item.amount++;
  provider.updateItem(item, item.name, item.amount);
}

In ElevatedButton, following line didn't work for above function.

onPressed: incrementAmount,

However, replacing it with the following line of code workked.

onPressed: () {
  incrementAmount(context, item);
  },

About

A cross-platform shopping list app created with Dart, Flutter and Firebase.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published