Skip to content

Commit

Permalink
修改example文件
Browse files Browse the repository at this point in the history
  • Loading branch information
吴丹 committed Aug 10, 2022
1 parent 594eaa8 commit 8f25617
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sdk/example/lib/home.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:example/car_module/car_cate.dart';
import 'package:example/string_const.dart';
import 'package:fair/fair.dart';
import 'package:flutter/material.dart';
import 'package:fair_pushy/fair_pushy.dart';
import 'card.dart';
Expand All @@ -10,6 +11,8 @@ class HomePage extends StatelessWidget {
Navigator.push(context, MaterialPageRoute(builder: (context) {
return FairPushyWidget(
bundleid: BundleConst.car,
// placeholder: (context) => Scaffold(body: Container()),
onError: (code) => print(code),
targetWidgetBuilder: (context) => CarCatePage());
}));
}
Expand Down
1 change: 1 addition & 0 deletions sdk/example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ void main() async {
appID: '1001',
updateUrl: "https://fangfe.58.com/fairapp/module_patch_bundle",
debug: true);
// FairPushy.setProxy('PROXY 10.252.206.119:8888');

/// 如果使用了中间件,且中间件中目标页的传入方式是通过pageName的方式,则需要把目标页注册到FairPushy中,
/// {pagename : (context, params) => Widget()}的方式
Expand Down

0 comments on commit 8f25617

Please sign in to comment.