import 'dart:ui';
|
|
import 'package:flutter/cupertino.dart';
|
import 'package:flutter/material.dart';
|
|
void main() {
|
runApp(MyApp());
|
}
|
|
class MyApp extends StatelessWidget {
|
// This widget is the root of your application.
|
@override
|
Widget build(BuildContext context) {
|
return MaterialApp(
|
title: '添加定位人',
|
theme: ThemeData(primaryColor: Color(0xFFF5F5F5)),
|
home: AddLocationPersonPage(title: ''),
|
);
|
}
|
}
|
|
class AddLocationPersonPage extends StatefulWidget {
|
AddLocationPersonPage({Key? key, required this.title}) : super(key: key);
|
|
// This widget is the home page of your application. It is stateful, meaning
|
// that it has a State object (defined below) that contains fields that affect
|
// how it looks.
|
|
// This class is the configuration for the state. It holds the values (in this
|
// case the title) provided by the parent (in this case the App widget) and
|
// used by the build method of the State. Fields in a Widget subclass are
|
// always marked "final".
|
|
final String title;
|
|
@override
|
_AddLocationPersonPageState createState() => _AddLocationPersonPageState();
|
}
|
|
class _AddLocationPersonPageState extends State<AddLocationPersonPage>
|
with SingleTickerProviderStateMixin {
|
@override
|
void initState() {
|
super.initState();
|
}
|
|
@override
|
Widget build(BuildContext context) {
|
return Scaffold(
|
backgroundColor: Color(0xFFB4E4FF),
|
body: Container(
|
child: Flex(
|
direction: Axis.vertical,
|
children: [
|
Image.asset(
|
"assets/images/common/ic_add_location_person_top.png"),
|
Expanded(
|
child: Container(
|
margin: EdgeInsets.all(10),
|
padding: EdgeInsets.fromLTRB(27, 0, 27, 0),
|
constraints: BoxConstraints(maxHeight: 500),
|
decoration: BoxDecoration(
|
color: Colors.white,
|
borderRadius: BorderRadius.circular(10)),
|
),
|
),
|
Container(
|
alignment: Alignment.center,
|
child: Container(
|
height: 77,
|
color: Colors.white,
|
alignment: Alignment.center,
|
padding: EdgeInsets.all(10),
|
child: InkWell(
|
onTap: () {
|
},
|
child: Container(
|
height: 54,
|
decoration: BoxDecoration(
|
border: Border.all(color: Color(0xFF0E96FF)),
|
color: Colors.white,
|
borderRadius:
|
BorderRadius.all(Radius.circular(10))),
|
child: Flex(
|
direction: Axis.horizontal,
|
mainAxisAlignment: MainAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
children: [
|
Image.asset(
|
"assets/images/common/icon_btn_watch_ad.png",
|
height: 16,
|
),
|
Text(
|
" 添加其他定位对象",
|
style: TextStyle(
|
color: Color(0xFF0E95FE), fontSize: 15),
|
)
|
],
|
),
|
),
|
))),
|
],
|
),
|
));
|
}
|
}
|