Commit e5648b3c authored by yangwu.jia's avatar yangwu.jia

修改pub库的名字

parent da97f5a5
......@@ -45,7 +45,7 @@ public class MyApplication extends FlutterApplication {
return new BoostFlutterEngine(context, new DartExecutor.DartEntrypoint(
context.getResources().getAssets(),
FlutterMain.findAppBundlePath(context),
"main2"),"/");
"main"),"/");
}
};
}
......
import 'package:flutter/material.dart';
import 'package:flutter_boost2/flutter_boost.dart';
import 'package:flutter_boost/flutter_boost.dart';
import 'simple_page_widgets.dart';
void main() {
runApp(MyApp());
}
void main2() {
print("terry run main2");
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
......@@ -46,29 +41,5 @@ class _MyAppState extends State<MyApp> {
void _onRoutePushed(
String pageName, String uniqueId, Map params, Route route, Future _) {
// List<OverlayEntry> newEntries = route.overlayEntries
// .map((OverlayEntry entry) => OverlayEntry(
// builder: (BuildContext context) {
// final pageWidget = entry.builder(context);
// return Stack(
// children: <Widget>[
// pageWidget,
// Positioned(
// child: Text(
// "pageName:$pageName\npageWidget:${pageWidget.toStringShort()}",
// style: TextStyle(fontSize: 12.0, color: Colors.red),
// ),
// left: 8.0,
// top: 8.0,
// )
// ],
// );
// },
// opaque: entry.opaque,
// maintainState: entry.maintainState))
// .toList(growable: true);
//
// route.overlayEntries.clear();
// route.overlayEntries.addAll(newEntries);
}
}
import 'package:flutter/material.dart';
import 'package:flutter_boost2/flutter_boost.dart';
import 'package:flutter_boost/flutter_boost.dart';
class FirstRouteWidget extends StatelessWidget {
@override
......
......@@ -25,7 +25,7 @@ dev_dependencies:
flutter_test:
sdk: flutter
flutter_boost2:
flutter_boost:
path: ../
# For information on the generic Dart part of this file, see the
......
name: flutter_boost2
name: flutter_boost
description: A next-generation Flutter-Native hybrid solution. FlutterBoost is a Flutter plugin which enables hybrid integration of Flutter for your existing native apps with minimum efforts.
version: 0.0.411
author: Alibaba Xianyu
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment