adding new list takes you to the list

This commit is contained in:
andrei 2021-11-23 18:39:36 -05:00
parent 88fb731a07
commit 647cdc4002
1 changed files with 3 additions and 1 deletions

View File

@ -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)));
}
},
),