bifrost 0.1.0 copy "bifrost: ^0.1.0" to clipboard
bifrost: ^0.1.0 copied to clipboard

Bifrost is a plugin which enables hybrid integration of Flutter for your existing native apps.

example/lib/main.dart

import 'package:bifrost/bifrost.dart';
import 'package:flutter/material.dart';

import 'pages/first_page.dart';
import 'pages/greetings_page.dart';
import 'pages/second_page.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      builder: Bifrost.init(),
      routes: routes,
      theme: theme,
    );
  }

  Map<String, WidgetBuilder> get routes => {
        '/first': (context) => FirstPage(),
        '/second': (context) => SecondPage(),
        '/greetings': (context) => GreetingsPage(),
      };

  ThemeData get theme => ThemeData(
        primaryColor: Colors.deepPurpleAccent,
        accentColor: Colors.deepPurpleAccent,
        appBarTheme: AppBarTheme(
          color: Colors.deepPurpleAccent,
        ),
      );
}
6
likes
140
points
16
downloads

Publisher

verified publisherdextra-sw.com

Weekly Downloads

Bifrost is a plugin which enables hybrid integration of Flutter for your existing native apps.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on bifrost

Packages that implement bifrost