Kasir Grosir: starter Flutter POS (scaffold awal)

This commit is contained in:
onie
2026-10-17 13:10:06 +07:00
commit 636579a0d2
146 changed files with 5373 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
import 'package:flutter/material.dart';
class MenuTile extends StatelessWidget {
final IconData icon;
final String title;
final String route;
const MenuTile({
Key? key,
required this.icon,
required this.title,
required this.route,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return ListTile(
leading: Icon(icon),
title: Text(title),
onTap: () {
Navigator.pop(context); // close drawer
if (ModalRoute.of(context)?.settings.name != route) {
Navigator.pushNamed(context, route);
}
},
);
}
}