flutter_thrio 4.21.1
flutter_thrio: ^4.21.1 copied to clipboard
Thrio makes it easy and fast to add flutter to existing mobile applications, and provide a simple and consistent navigator APIs.
import 'dart:async';
import 'package:flutter_thrio/flutter_thrio.dart';
import 'src/app.dart' as app;
Future<void> main() async {
ThrioLogger.v('main');
runZonedGuarded(app.main, (error, stack) {
Zone.current.handleUncaughtError(error, stack);
});
}
@pragma('vm:entry-point')
Future<void> biz1() async {
runZonedGuarded(app.biz1, (error, stack) {
Zone.current.handleUncaughtError(error, stack);
});
}
@pragma('vm:entry-point')
Future<void> biz2() async {
runZonedGuarded(app.biz2, (error, stack) {
Zone.current.handleUncaughtError(error, stack);
});
}