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
120
pub points
0%
popularity

Publisher

verified publisherdextra-sw.com

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on bifrost