fix: continuing error managment and documentation
This commit is contained in:
parent
59e1c2558c
commit
dad000a1b9
24 changed files with 389 additions and 182 deletions
|
|
@ -38,7 +38,7 @@ class _HomePageState extends State<HomePage> {
|
|||
: ListView(
|
||||
children: [
|
||||
for (Bal bal in widget.viewModel.bals.where(
|
||||
(el) => el.id != widget.viewModel.currentBal?.id,
|
||||
(el) => el.id != widget.viewModel.ongoingBal?.id,
|
||||
))
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(
|
||||
|
|
@ -81,20 +81,20 @@ class _HomePageState extends State<HomePage> {
|
|||
],
|
||||
),
|
||||
),
|
||||
switch (widget.viewModel.currentBal == null) {
|
||||
switch (widget.viewModel.ongoingBal == null) {
|
||||
true => SizedBox(),
|
||||
false => Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 10.0),
|
||||
child: Card(
|
||||
child: ListTile(
|
||||
leading: Icon(Icons.event_available),
|
||||
title: Text(widget.viewModel.currentBal!.name),
|
||||
title: Text(widget.viewModel.ongoingBal!.name),
|
||||
subtitle: Text("BAL en cours"),
|
||||
trailing: IconButton(
|
||||
onPressed: () {
|
||||
_moveToBal(
|
||||
context,
|
||||
widget.viewModel.currentBal!.id,
|
||||
widget.viewModel.ongoingBal!.id,
|
||||
);
|
||||
},
|
||||
icon: Icon(Icons.arrow_forward),
|
||||
|
|
|
|||
Reference in a new issue