mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-03-18 12:34:54 +00:00
25 lines
678 B
Dart
25 lines
678 B
Dart
part of 'users.dart';
|
|
|
|
class AddUserFab extends StatelessWidget {
|
|
const AddUserFab({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return FloatingActionButton.small(
|
|
heroTag: 'new_user_fab',
|
|
onPressed: () {
|
|
showModalBottomSheet<void>(
|
|
context: context,
|
|
isScrollControlled: true,
|
|
backgroundColor: Colors.transparent,
|
|
builder: (BuildContext context) {
|
|
return Padding(
|
|
padding: MediaQuery.of(context).viewInsets,
|
|
child: const NewUser());
|
|
},
|
|
);
|
|
},
|
|
child: const Icon(Icons.person_add_outlined),
|
|
);
|
|
}
|
|
}
|