2022-12-27 07:01:37 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:selfprivacy/ui/itemspage.dart';
|
|
|
|
|
|
|
|
class AddItemFab extends StatelessWidget {
|
|
|
|
const AddItemFab({super.key});
|
|
|
|
|
|
|
|
@override
|
2022-12-27 08:41:20 +00:00
|
|
|
Widget build(final BuildContext context) => FloatingActionButton(
|
2022-12-27 07:01:37 +00:00
|
|
|
heroTag: 'new_item_fab',
|
|
|
|
onPressed: () {
|
|
|
|
showModalBottomSheet<void>(
|
|
|
|
context: context,
|
|
|
|
isScrollControlled: true,
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
builder: (final BuildContext context) => Padding(
|
|
|
|
padding: MediaQuery.of(context).viewInsets,
|
|
|
|
child: const ItemsDetails(),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
},
|
|
|
|
child: const Icon(Icons.add_box_outlined),
|
|
|
|
);
|
|
|
|
}
|