fpyi 0.0.3 copy "fpyi: ^0.0.3" to clipboard
fpyi: ^0.0.3 copied to clipboard

A new flutter plugin project.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:fpyi/fpyi.dart';
import 'package:fpyi_example/libs/service.dart';
import 'package:fpyi_example/router.dart';

class App extends PYIComponent {
  final Fpyi fpyi;
  App({this.fpyi});

  @override
  void componentWillUpdate(BuildContext context) {
    PYIService.$context = context;
  }

  @override
  Widget render(BuildContext context) {
    return MaterialApp(
      title: '云链天下',
      theme: ThemeData(primaryColor: Colors.blue),
      initialRoute: '/',
      onGenerateRoute: fpyi.getRoutes,
    );
  }
}

void main() {
  final fpyi = Fpyi(
    router: root,
  );
  fpyi.bootstrap(App(fpyi: fpyi));
}
0
likes
20
pub points
0%
popularity

Publisher

unverified uploader

A new flutter plugin project.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on fpyi