shopping_cart 0.0.2 copy "shopping_cart: ^0.0.2" to clipboard
shopping_cart: ^0.0.2 copied to clipboard

ShoppingCart is a Flutter library that simplifies the creation and management of a shopping cart in your Flutter applications.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'pages/cart_page.dart';
import 'pages/menu_page.dart';

void main() {
  runApp(const ShoppingCartDemoApp());
}

class ShoppingCartDemoApp extends StatelessWidget {
  const ShoppingCartDemoApp({super.key});

  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      title: 'Shopping cart demo',
      debugShowCheckedModeBanner: false,
      themeMode: ThemeMode.system,
      initialRoute: '/menu',
      routes: {
        '/menu': (context) =>  const MenuPage(),
        '/cart':  (context) => const CartPage(),
      },
      theme: ThemeData(
        useMaterial3: true,
      ),
    );
  }
}
10
likes
140
pub points
71%
popularity
screenshot

Publisher

verified publisheregortabula.dev

ShoppingCart is a Flutter library that simplifies the creation and management of a shopping cart in your Flutter applications.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter, get

More

Packages that depend on shopping_cart