selfprivacy.org.app/lib/ui/pages/users/add_user_fab.dart
NaiJi 2ac8e4366b Linting!
Co-authored-by: Inex Code <inex.code@selfprivacy.org>
2022-06-06 01:40:34 +03:00

23 lines
666 B
Dart

part of 'users.dart';
class AddUserFab extends StatelessWidget {
const AddUserFab({final 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),
);
}