24 lines
748 B
Dart
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),
|
|
);
|
|
}
|