@@ 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(