mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-07-03 23:00:26 +08:00
fix:rename
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>菜鸟App</string>
|
||||
<string>Flutter Go</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>$(EXECUTABLE_NAME)</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
|
@ -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: <Widget>[
|
||||
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: <Widget>[
|
||||
Column(
|
||||
children: <Widget>[
|
||||
SizedBox(
|
||||
height: 10.0,
|
||||
),
|
||||
child,
|
||||
],
|
||||
),
|
||||
])
|
||||
),
|
||||
bottomNavigationBar: (bottomNaviBar is Widget)?bottomNaviBar:null
|
||||
);
|
||||
}
|
||||
}
|
@ -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';
|
||||
|
||||
|
Reference in New Issue
Block a user