Fix onError types

This commit is contained in:
Vishesh Handa
2019-02-13 14:25:52 +01:00
parent cee81d7c4a
commit 9452354a99
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ void main() async {
runZoned<Future<void>>(() async {
await runJournalApp();
}, onError: (Error error, StackTrace stackTrace) async {
}, onError: (Object error, StackTrace stackTrace) async {
await FlutterCrashlytics()
.reportCrash(error, stackTrace, forceCrash: false);
});

View File

@ -45,7 +45,7 @@ class NoteBrowsingScreenState extends State<NoteBrowsingScreen> {
floatingActionButton: FloatingActionButton(
child: Icon(Icons.edit),
onPressed: () {
var route = MaterialPageRoute<Widget>(builder: (context) {
var route = MaterialPageRoute(builder: (context) {
int currentIndex = pageController.page.toInt();
assert(currentIndex >= 0);
assert(currentIndex < widget.notes.length);