course-work/lib/ui/fabs/addorderfab.dart
2022-12-27 13:09:00 +04:00

24 lines
729 B
Dart

import 'package:flutter/material.dart';
import 'package:selfprivacy/ui/orderspage.dart';
class AddOrderFab extends StatelessWidget {
const AddOrderFab({super.key});
@override
Widget build(final BuildContext context) => FloatingActionButton(
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: const OrdersDetails(),
),
);
},
child: const Icon(Icons.add_alarm_outlined),
);
}