mirror of
https://github.com/Iconica-Development/flutter_shopping.git
synced 2025-05-19 08:53:46 +02:00
21 lines
582 B
Dart
21 lines
582 B
Dart
|
import "package:flutter/material.dart";
|
||
|
import "package:flutter_shopping/flutter_shopping.dart";
|
||
|
import "package:go_router/go_router.dart";
|
||
|
|
||
|
class Homepage extends StatelessWidget {
|
||
|
const Homepage({super.key});
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) => Scaffold(
|
||
|
body: Center(
|
||
|
child: Badge(
|
||
|
label: const Text("1"),
|
||
|
child: IconButton(
|
||
|
icon: const Icon(Icons.shopping_cart_outlined, size: 50),
|
||
|
onPressed: () => context.go(FlutterShoppingRoutes.shop),
|
||
|
),
|
||
|
),
|
||
|
),
|
||
|
);
|
||
|
}
|