course-work/lib/ui/fabs/addorderfab.dart
2022-12-27 11:01:37 +04:00

24 lines
748 B
Dart

import 'package:flutter/material.dart';
class AddOrderFab extends StatelessWidget {
const AddOrderFab({super.key});
@override
Widget build(final BuildContext context) => FloatingActionButton.small(
heroTag: 'new_order_fab',
onPressed: () {
showModalBottomSheet<void>(
context: context,
isScrollControlled: true,
backgroundColor: Colors.transparent,
builder: (final BuildContext context) => Padding(
padding: MediaQuery.of(context).viewInsets,
child:
null, // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!111
),
);
},
child: const Icon(Icons.add_alarm_outlined),
);
}