From ef9a369df17a3b1fd740ce05262940383a1964f5 Mon Sep 17 00:00:00 2001 From: marco Date: Thu, 18 Sep 2025 20:56:58 +0200 Subject: [PATCH] simple collections page without logic --- lib/pages/collections_page.dart | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 lib/pages/collections_page.dart diff --git a/lib/pages/collections_page.dart b/lib/pages/collections_page.dart new file mode 100644 index 0000000..f0d59ca --- /dev/null +++ b/lib/pages/collections_page.dart @@ -0,0 +1,33 @@ +import 'package:flutter/material.dart'; + +import '../widgets/create_bookmark_collection_dialog.dart'; + +class CollectionsPage extends StatefulWidget { + const CollectionsPage({super.key}); + static const String routeName = '/collections'; + + @override + State createState() => _CollectionsPageState(); +} + +class _CollectionsPageState extends State { + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar(), + floatingActionButton: FloatingActionButton( + onPressed: () => showDialog( + context: context, + builder: (context) => CreateBookmarkCollectionDialog(), + ), + child: Icon(Icons.add), + ), + body: ListView(), + ); + } + + void onAddButtonPressed() => showDialog( + context: context, + builder: (context) => CreateBookmarkCollectionDialog(), + ); +}