artifact.dart
865 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import 'package:flutter/material.dart';
import 'package:flutter_mes2/view/MyPainter.dart';
class artifact extends StatefulWidget{
@override
State<StatefulWidget> createState() {
return _artifact();
}
}
class _artifact extends State<artifact>{
@override
Widget build(BuildContext context) {
// TODO: implement build
return new Scaffold(
appBar: new AppBar(
title: Text("xx工件"),
centerTitle: true, // 标题居中),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Container(
width:300,
height:300,
child: CustomPaint(
child: Text(""),
painter: MyPainter(),
),
),
],
),
),
);
}
}