flutter_thrio 3.1.3 copy "flutter_thrio: ^3.1.3" to clipboard
flutter_thrio: ^3.1.3 copied to clipboard

outdated

Thrio makes it easy and fast to add flutter to existing mobile applications, and provide a simple and consistent navigator APIs.

example/lib/main.dart

import 'dart:async';

import 'package:flutter/foundation.dart';
import 'package:flutter/widgets.dart';
import 'package:flutter_thrio/flutter_thrio.dart';

import 'src/app.dart' as app;

Future<void> main() async {
  ThrioLogger.v('main');
  FlutterError.onError = (final details) async {
    Zone.current.handleUncaughtError(
      details.exception,
      details.stack ?? StackTrace.empty,
    );
  };
  runZoned<void>(app.main);
}

@pragma('vm:entry-point')
Future<void> biz1() async {
  FlutterError.onError = (final details) async {
    Zone.current.handleUncaughtError(
      details.exception,
      details.stack ?? StackTrace.empty,
    );
  };
  runZoned<void>(app.biz1);
}

@pragma('vm:entry-point')
Future<void> biz2() async {
  FlutterError.onError = (final details) async {
    Zone.current.handleUncaughtError(
      details.exception,
      details.stack ?? StackTrace.empty,
    );
  };
  runZoned<void>(app.biz2);
}
8
likes
0
points
358
downloads

Publisher

unverified uploader

Weekly Downloads

Thrio makes it easy and fast to add flutter to existing mobile applications, and provide a simple and consistent navigator APIs.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_thrio

Packages that implement flutter_thrio