mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-09 10:23:11 +00:00
23 lines
660 B
Dart
23 lines
660 B
Dart
part of 'users.dart';
|
|
|
|
class AddUserFab extends StatelessWidget {
|
|
const AddUserFab({super.key});
|
|
|
|
@override
|
|
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),
|
|
);
|
|
}
|