selfprivacy.org.app/lib/ui/pages/users/fab.dart

37 lines
892 B
Dart
Raw Normal View History

2021-01-06 19:35:57 +02:00
part of 'users.dart';
class _Fab extends StatelessWidget {
2021-03-15 17:39:44 +02:00
const _Fab({Key? key}) : super(key: key);
2021-01-06 19:35:57 +02:00
@override
Widget build(BuildContext context) {
return Container(
width: 48.0,
height: 48.0,
child: RawMaterialButton(
fillColor: BrandColors.blue,
shape: CircleBorder(),
elevation: 0.0,
highlightElevation: 2,
child: Icon(
Icons.add,
color: Colors.white,
size: 34,
),
onPressed: () {
showModalBottomSheet<void>(
context: context,
isScrollControlled: true,
backgroundColor: Colors.transparent,
builder: (BuildContext context) {
2021-09-29 21:28:47 +03:00
return Padding(
padding: MediaQuery.of(context).viewInsets,
child: _NewUser());
2021-01-06 19:35:57 +02:00
},
);
},
),
);
}
}