mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-09-06 03:56:56 +00:00
26 lines
678 B
Dart
26 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),
|
||
|
);
|
||
|
}
|
||
|
}
|