adding new list takes you to the list
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import 'package:boxchecker/check_list.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'data_util.dart' as data;
|
||||
import 'db_helper.dart';
|
||||
@@ -113,7 +114,8 @@ class _AddFormState extends State<AddForm> {
|
||||
if (_templatChoice >= 0 && _templatChoice < templates.length) {
|
||||
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)));
|
||||
}
|
||||
},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user