修改示例

This commit is contained in:
18871002288 2019-09-24 17:24:29 +08:00
parent 3efa40b8b8
commit 651dd1c7d1
5 changed files with 18 additions and 15 deletions

View File

@ -35,9 +35,12 @@ class TriangleCliper extends CustomClipper<Path>{
@override
Path getClip(Size size) {
Path path = Path();
path.moveTo(50.0,50.0);//
path.lineTo(50.0,10.0);//
path.lineTo(100.0,50.0);//(50,10),
//(50.0,50.0)
path.moveTo(50.0,50.0);
//线 (50.0,50.0) (50.0,10.0)
path.lineTo(50.0,10.0);
//线 (50.0,10.0) (100.0,50.0)
path.lineTo(100.0,50.0);
path.close();//使
return path;
}

View File

@ -84,7 +84,7 @@ class PersistentDemoState extends State<PersistentDemo> {
TextField(
controller: controller,
decoration: InputDecoration(
labelText: '称:',
labelText: '称:',
hintText: '请输入名称',
),
),

View File

@ -33,15 +33,15 @@ class MyApp extends StatelessWidget {
const Text('第三行第一列'),
const Text('第三行第二列'),
const Text('第三行第三列'),
const Text('二行第三'),
const Text('三行第一'),
const Text('三行第二'),
const Text('三行第三'),
const Text('三行第三'),
const Text('行第三列'),
const Text('四行第一'),
const Text('四行第二'),
const Text('四行第三'),
const Text('五行第一'),
const Text('五行第二'),
const Text('行第三列'),
],
),
),
);
}
}
}

View File

@ -17,7 +17,7 @@ class MyApp extends StatelessWidget {
//
title: Text('广州市黄埔大道建中路店',style: TextStyle(fontWeight: FontWeight.w400,fontSize: 18.0),),
//
subtitle: Text('广州市黄埔大道建中路3号'),
subtitle: Text('广州市黄埔大道建中路3号'),
//
leading: Icon(
Icons.fastfood,
@ -62,4 +62,4 @@ class MyApp extends StatelessWidget {
),
);
}
}
}

View File

@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
void main() {
runApp(MaterialApp(
title: 'Table表格布局示例',
title: 'Table布局示例',
home: MyApp(),
));
}
@ -12,7 +12,7 @@ class MyApp extends StatelessWidget {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Table表格布局示例'),
title: Text('Table布局示例'),
),
//
body: Center(