diff --git a/sdk/example/lib/home.dart b/sdk/example/lib/home.dart index 6cf62ca..6e4a338 100644 --- a/sdk/example/lib/home.dart +++ b/sdk/example/lib/home.dart @@ -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'; @@ -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()); })); } diff --git a/sdk/example/lib/main.dart b/sdk/example/lib/main.dart index fcb30a5..eecfd79 100644 --- a/sdk/example/lib/main.dart +++ b/sdk/example/lib/main.dart @@ -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()}的方式