2022-12-27 07:01:37 +00:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:selfprivacy/ui/courierspage.dart';
|
|
|
|
|
|
|
|
class AddCourierFab extends StatelessWidget {
|
|
|
|
const AddCourierFab({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_courier_fab',
|
|
|
|
onPressed: () {
|
|
|
|
showModalBottomSheet<void>(
|
|
|
|
context: context,
|
|
|
|
isScrollControlled: true,
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
builder: (final BuildContext context) => Padding(
|
|
|
|
padding: MediaQuery.of(context).viewInsets,
|
|
|
|
child: const CouriersDetails(),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
},
|
|
|
|
child: const Icon(Icons.person_add_outlined),
|
|
|
|
);
|
|
|
|
}
|