feat: compelete bal pending screen

This commit is contained in:
alzalia1 2025-08-14 01:02:39 +02:00
parent b12809ba93
commit 618764f513
4 changed files with 72 additions and 3 deletions

View file

@ -12,6 +12,7 @@ class BalPendingScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
return Scaffold(
bottomNavigationBar: AppNavigationBar(startIndex: 0),
appBar: AppBar(
@ -31,7 +32,15 @@ class BalPendingScreen extends StatelessWidget {
),
body: Center(
child: ElevatedButton(
onPressed: () {},
onPressed: viewModel.isABalOngoing
? () {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(content: Text("Une BAL est déjà en cours.")),
);
}
: () {
viewModel.startBal(viewModel.bal!.id);
},
child: Text("Démarrer cette BAL"),
),
),