|
|
@ -2,6 +2,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
import 'dart:io';
|
|
|
|
import 'dart:io';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import 'package:akuCommunity/constants/app_values.dart';
|
|
|
|
|
|
|
|
import 'package:akuCommunity/provider/app_provider.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
|
|
|
@ -106,7 +108,7 @@ class _DetoCreatePageState extends State<DetoCreatePage> {
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
Text(
|
|
|
|
kEstateName,
|
|
|
|
AppValues.plotName,
|
|
|
|
style: TextStyle(
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontSize: 32.sp,
|
|
|
|
fontSize: 32.sp,
|
|
|
@ -268,11 +270,13 @@ class _DetoCreatePageState extends State<DetoCreatePage> {
|
|
|
|
onTap: onTap,
|
|
|
|
onTap: onTap,
|
|
|
|
child: Row(
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
(select.isEmptyOrNull ? '请选择' : select)
|
|
|
|
((select?.isEmptyOrNull ?? true) ? '请选择' : select)
|
|
|
|
.text
|
|
|
|
.text
|
|
|
|
.color(select.isEmptyOrNull ? ktextSubColor : ktextPrimary)
|
|
|
|
.color((select?.isEmptyOrNull ?? true)
|
|
|
|
|
|
|
|
? ktextSubColor
|
|
|
|
|
|
|
|
: ktextPrimary)
|
|
|
|
.size(36.sp)
|
|
|
|
.size(36.sp)
|
|
|
|
.fontWeight(select.isEmptyOrNull
|
|
|
|
.fontWeight((select?.isEmptyOrNull ?? true)
|
|
|
|
? FontWeight.normal
|
|
|
|
? FontWeight.normal
|
|
|
|
: FontWeight.bold)
|
|
|
|
: FontWeight.bold)
|
|
|
|
.make(),
|
|
|
|
.make(),
|
|
|
@ -399,12 +403,13 @@ class _DetoCreatePageState extends State<DetoCreatePage> {
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
UserProvider userProvider = Provider.of<UserProvider>(context);
|
|
|
|
UserProvider userProvider = Provider.of<UserProvider>(context);
|
|
|
|
|
|
|
|
AppProvider appProvider = Provider.of<AppProvider>(context);
|
|
|
|
return BeeScaffold(
|
|
|
|
return BeeScaffold(
|
|
|
|
title: '物品出户',
|
|
|
|
title: '物品出户',
|
|
|
|
body: ListView(
|
|
|
|
body: ListView(
|
|
|
|
padding: EdgeInsets.all(32.w),
|
|
|
|
padding: EdgeInsets.all(32.w),
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
_houseAddress(userProvider.currentHouse),
|
|
|
|
_houseAddress(appProvider.selectedHouse.roomName),
|
|
|
|
_getWeight(),
|
|
|
|
_getWeight(),
|
|
|
|
_itemPicker('出户时间', datetime, () async {
|
|
|
|
_itemPicker('出户时间', datetime, () async {
|
|
|
|
_date = await BeeDatePicker.timePicker(DateTime.now());
|
|
|
|
_date = await BeeDatePicker.timePicker(DateTime.now());
|
|
|
|