~andreafeletto/flussimetro

a4a0423a4866f6fffc7b629c5bb639a43aa8643b — Andrea Feletto 1 year, 2 months ago 864ab4b
disable action button during selection
1 files changed, 7 insertions(+), 5 deletions(-)

M lib/page/subscription_list.dart
M lib/page/subscription_list.dart => lib/page/subscription_list.dart +7 -5
@@ 61,11 61,13 @@ class _SubscriptionListPageState extends State<SubscriptionListPage> {
            ),
        ],
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () => context.go('/add'),
        tooltip: 'New subscription',
        child: const Icon(Icons.add),
      ),
      floatingActionButton: selected.isEmpty
          ? FloatingActionButton(
              onPressed: () => context.go('/add'),
              tooltip: 'New subscription',
              child: const Icon(Icons.add),
            )
          : null,
      body: ValueListenableBuilder(
        valueListenable: Hive.box('flows').listenable(),
        builder: (context, box, widget) => ListView.builder(