书中错误校对
This commit is contained in:
parent
651dd1c7d1
commit
00e1eeb6d7
|
@ -16,11 +16,11 @@ class MyApp extends StatelessWidget {
|
|||
child: RaisedButton(
|
||||
onPressed: () {
|
||||
//指定url并发起请求
|
||||
const url = 'https://www.baidu.com';
|
||||
const url = 'https://github.com';
|
||||
//调用url_launcher包里的launch方法
|
||||
launch(url);
|
||||
},
|
||||
child: Text('打开百度'),
|
||||
child: Text('打开GitHub'),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
|
|||
|
||||
void main() => runApp(
|
||||
MaterialApp(
|
||||
title: 'Container布局容器示例',
|
||||
title: 'Container容器布局示例',
|
||||
home: LayoutDemo(),
|
||||
),
|
||||
);
|
||||
|
@ -89,7 +89,7 @@ class LayoutDemo extends StatelessWidget {
|
|||
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text('Container布局容器示例'),
|
||||
title: Text('Container容器布局示例'),
|
||||
),
|
||||
body: container,
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue