openlp-mobile-remote/lib/widgets/search_floating_button.dart

20 lines
488 B
Dart
Raw Normal View History

2019-07-24 21:00:24 +00:00
import 'package:flutter/material.dart';
import '../widgets/service_item_bottom_sheet.dart';
class SearchFloatingButton extends StatelessWidget {
@override
Widget build(BuildContext context) {
return FloatingActionButton.extended(
label: Text('New service item'),
icon: Icon(Icons.search),
onPressed: () {
showModalBottomSheet<void>(
context: context,
builder: (context) => ServiceItemBottomSheet(),
);
},
);
}
}