书中错误校对

This commit is contained in:
18871002288 2019-10-23 17:25:05 +08:00
parent 651dd1c7d1
commit 00e1eeb6d7
2 changed files with 4 additions and 4 deletions

View File

@ -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'),
),
),
),

View File

@ -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,
);