diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index 1cd5f1de..d94b59b8 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -5,7 +5,7 @@ CFBundleDevelopmentRegion en CFBundleDisplayName - 菜鸟App + Flutter Go CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier diff --git a/lib/common/widget-demo.dart b/lib/common/widget-demo.dart deleted file mode 100644 index b359e4d3..00000000 --- a/lib/common/widget-demo.dart +++ /dev/null @@ -1,74 +0,0 @@ -import 'package:flutter/material.dart'; -import 'package:url_launcher/url_launcher.dart'; - -class WidgetDemo extends StatelessWidget { - final Widget child; - final String docUrl; - final String title; - final String codeUrl; - - WidgetDemo( - {Key key, - @required this.title, - @required this.child, - @required this.codeUrl, - @required this.docUrl}) - : super(key: key); - - void _launchURL(String url) async { - if (await canLaunch(url)) { - await launch(url); - } else { - throw 'Could not launch $url'; - } - } - - @override - Widget build(BuildContext context,[bottomNaviBar]) { - return Scaffold( - appBar: new AppBar( - title: Text(title), - actions: [ - new IconButton( - tooltip: 'widget doc', - onPressed: (){ - _launchURL(docUrl); - }, - icon: Icon(Icons.library_books), - ), - new IconButton( - tooltip: 'github code', - onPressed: (){ - _launchURL(codeUrl); - }, - icon: Icon(Icons.code), - ), - new IconButton( - tooltip: 'goBack home', - onPressed: (){ - Navigator.popUntil(context, ModalRoute.withName('/')); - }, - icon: Icon(Icons.home), - ), - ], - ), - body: new Container( - padding: const EdgeInsets.symmetric(vertical: 10.0, horizontal: 15.0), - child: ListView( - shrinkWrap: true, - padding: const EdgeInsets.all(0.0), - children: [ - Column( - children: [ - SizedBox( - height: 10.0, - ), - child, - ], - ), - ]) - ), - bottomNavigationBar: (bottomNaviBar is Widget)?bottomNaviBar:null - ); - } -} diff --git a/lib/views/web_view_page.dart b/lib/views/web_view_page.dart index 7d224e3a..da53c71c 100644 --- a/lib/views/web_view_page.dart +++ b/lib/views/web_view_page.dart @@ -8,7 +8,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_webview_plugin/flutter_webview_plugin.dart'; import '../model/collection.dart'; import '../event/event_bus.dart'; -import '../event/event-model.dart'; +import '../event/event_model.dart'; import 'package:fluttertoast/fluttertoast.dart'; import 'dart:core';