@@ -13,6 +13,7 @@ import 'package:papyrus/widgets/library/book_list_item.dart';
1313import 'package:papyrus/widgets/library/library_drawer.dart' ;
1414import 'package:papyrus/widgets/library/library_filter_chips.dart' ;
1515import 'package:papyrus/widgets/search/library_search_bar.dart' ;
16+ import 'package:papyrus/widgets/add_book/add_book_choice_sheet.dart' ;
1617import 'package:papyrus/widgets/shared/empty_state.dart' ;
1718import 'package:provider/provider.dart' ;
1819
@@ -195,9 +196,7 @@ class _LibraryPageState extends State<LibraryPage> {
195196 ),
196197 ),
197198 floatingActionButton: FloatingActionButton (
198- onPressed: () {
199- // TODO: Add book action
200- },
199+ onPressed: () => AddBookChoiceSheet .show (context),
201200 child: const Icon (Icons .add),
202201 ),
203202 );
@@ -398,9 +397,7 @@ class _LibraryPageState extends State<LibraryPage> {
398397
399398 Widget _buildAddBookButton (double height) {
400399 return FilledButton .icon (
401- onPressed: () {
402- // TODO: Add book action
403- },
400+ onPressed: () => AddBookChoiceSheet .show (context),
404401 icon: const Icon (Icons .add),
405402 label: const Text ('Add book' ),
406403 style: FilledButton .styleFrom (minimumSize: Size (0 , height)),
0 commit comments