simple collections page without logic
This commit is contained in:
33
lib/pages/collections_page.dart
Normal file
33
lib/pages/collections_page.dart
Normal file
@@ -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<CollectionsPage> createState() => _CollectionsPageState();
|
||||
}
|
||||
|
||||
class _CollectionsPageState extends State<CollectionsPage> {
|
||||
@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(),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user