thrio 2.0.11 copy "thrio: ^2.0.11" to clipboard
thrio: ^2.0.11 copied to clipboard

discontinued

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:thrio/thrio.dart';

import 'src/app.dart' as app;

Future<void> main() async {
  ThrioLogger.v('main');
  FlutterError.onError = (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 = (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 = (details) async {
    Zone.current.handleUncaughtError(
      details.exception,
      details.stack ?? StackTrace.empty,
    );
  };
  runZoned<void>(app.biz2);
}
9
likes
75
pub points
0%
popularity

Publisher

unverified uploader

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

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on thrio