mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-01 20:43:20 +08:00
Fix onError types
This commit is contained in:
@ -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);
|
||||
});
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user