123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- import 'package:flutter/cupertino.dart';
- import 'package:flutter/material.dart';
- import 'package:ysairplane/base/YSBase.dart';
- class YSFeedback extends StatefulWidget {
- @override
- _YSFeedbackState createState() => _YSFeedbackState();
- }
- class _YSFeedbackState extends State<YSFeedback> {
- List array = ['选择1','选择2','选择3'];
- @override
- Widget build(BuildContext context) {
- return YSBase(
- ystitle: '意见反馈',
- yschild: Column(
- children: [
- Divider(height: 5,thickness: 5,color: Color(0xFFF5F6F8),),
- Container(
- height: 50,
- padding: EdgeInsets.only(left: 15,right: 15),
- child: Row(
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
- children: [
- Text('意见反馈类型',style: TextStyle(fontSize: 16,color: Color(0xFF000000)),),
- DropdownButton(
- value: '${array[0]}',
- items: [
- for(int i=0;i<array.length;i++)DropdownMenuItem(child: Text('${array[i]}'),value: '${array[i]}',),
- ],
- onChanged: (value){
- },
- underline: Container(),
- icon: Icon(Icons.keyboard_arrow_down,size: 20,color: Color(0xFF999999),),
- style: TextStyle(fontSize: 15,color: Color(0xFF999999)),
- )
- ],
- ),
- ),
- Divider(height: 0.5,thickness: 0.5,color: Color(0xFFF5F6F8),),
- Container(
- margin: EdgeInsets.only(top: 15,bottom: 15),
- width: MediaQuery.of(context).size.width-30,
- child: Text('留言内容',style: TextStyle(fontSize: 14,color: Color(0xFF999999)),),
- ),
- Container(
- width: MediaQuery.of(context).size.width-30,
- padding: EdgeInsets.all(5),
- height: 200,
- color: Color(0xFFF5F5F7),
- child: CupertinoTextField(
- style: TextStyle(fontSize: 14,color: Color(0xFF000000)),
- decoration: BoxDecoration(),
- ),
- ),
- Container(
- width: MediaQuery.of(context).size.width-30,
- margin: EdgeInsets.only(top: 40),
- height: 40,
- alignment: Alignment.center,
- decoration: BoxDecoration(
- color: Color(0xFF0079FF),
- borderRadius: BorderRadius.all(Radius.circular(5))
- ),
- child: Text('提交',style: TextStyle(fontSize: 17,color: Colors.white,fontWeight: FontWeight.bold),),
- )
- ],
- ),
- );
- }
- }
|