course-work/lib/ui/fabs/addcourierfab.dart

24 lines
740 B
Dart
Raw Normal View History

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
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),
);
}