adding new list takes you to the list
This commit is contained in:
parent
88fb731a07
commit
647cdc4002
|
|
@ -1,3 +1,4 @@
|
||||||
|
import 'package:boxchecker/check_list.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'data_util.dart' as data;
|
import 'data_util.dart' as data;
|
||||||
import 'db_helper.dart';
|
import 'db_helper.dart';
|
||||||
|
|
@ -113,7 +114,8 @@ class _AddFormState extends State<AddForm> {
|
||||||
if (_templatChoice >= 0 && _templatChoice < templates.length) {
|
if (_templatChoice >= 0 && _templatChoice < templates.length) {
|
||||||
DBHelper.dbHelper.copyList(templates[_templatChoice].id!, id);
|
DBHelper.dbHelper.copyList(templates[_templatChoice].id!, id);
|
||||||
}
|
}
|
||||||
Navigator.pop(context); // TODO replace route with checklist page
|
Navigator.pushReplacement(context,
|
||||||
|
MaterialPageRoute(builder: (context) => CheckList(id: id)));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue