2022-05-30 23:06:08 +00:00
|
|
|
part of 'users.dart';
|
|
|
|
|
|
|
|
class AddUserFab extends StatelessWidget {
|
2022-06-05 22:40:34 +00:00
|
|
|
const AddUserFab({final super.key});
|
2022-05-30 23:06:08 +00:00
|
|
|
|
|
|
|
@override
|
2022-06-05 22:40:34 +00:00
|
|
|
Widget build(final BuildContext context) => FloatingActionButton.small(
|
|
|
|
heroTag: 'new_user_fab',
|
|
|
|
onPressed: () {
|
|
|
|
showModalBottomSheet<void>(
|
|
|
|
context: context,
|
|
|
|
isScrollControlled: true,
|
|
|
|
backgroundColor: Colors.transparent,
|
|
|
|
builder: (final BuildContext context) => Padding(
|
|
|
|
padding: MediaQuery.of(context).viewInsets,
|
|
|
|
child: const NewUser(),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
},
|
|
|
|
child: const Icon(Icons.person_add_outlined),
|
|
|
|
);
|
2022-05-30 23:06:08 +00:00
|
|
|
}
|