Table dropping implemented
This commit is contained in:
parent
529ec239d1
commit
d973954a75
4 changed files with 114 additions and 4 deletions
|
|
@ -5,7 +5,8 @@ import 'package:recase/recase.dart';
|
|||
import 'package:tuuli_app/api/api_client.dart';
|
||||
import 'package:tuuli_app/api/model/tables_list_model.dart';
|
||||
import 'package:tuuli_app/c.dart';
|
||||
import 'package:tuuli_app/pages/bottomsheers/edit_table_bottomsheet.dart';
|
||||
import 'package:tuuli_app/pages/bottomsheets/edit_table_bottomsheet.dart';
|
||||
import 'package:tuuli_app/pages/bottomsheets/open_table_bottomsheet.dart';
|
||||
import 'package:tuuli_app/pages/home_page.dart';
|
||||
|
||||
class TablesListPanel extends StatefulWidget {
|
||||
|
|
@ -184,6 +185,17 @@ class _TablesListPanelState extends State<TablesListPanel> {
|
|||
}
|
||||
|
||||
void _openTable(TableModel table) async {
|
||||
// TODO: Open table
|
||||
final result = await showFlexibleBottomSheet<void>(
|
||||
minHeight: 1,
|
||||
initHeight: 1,
|
||||
maxHeight: 1,
|
||||
context: context,
|
||||
builder: (_, __, ___) => OpenTableBottomSheet(table: table),
|
||||
anchors: [0, 0.5, 1],
|
||||
isSafeArea: true,
|
||||
isDismissible: false,
|
||||
);
|
||||
|
||||
widget.parent.refreshData();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue