pull/1/head
戴余标 3 years ago
parent a5ccb0d4cc
commit e521e66e9f

@ -22,7 +22,7 @@ class _MyHouse {
class _MyFamily {
///
String get myFamilyMember => '/app/user/myFamily/findCurrentMembers';
String get myFamilyMember => '/app/user/myFamily/findCurrentMembers';
///
String get myFamilyExamine => '/app/user/myFamily/findCurrentUserApply';

@ -4,7 +4,6 @@
// ignore_for_file: directives_ordering
// ignore_for_file: lines_longer_than_80_chars
// ignore_for_file: depend_on_referenced_packages
import 'package:audio_session/audio_session_web.dart';
import 'package:device_info_plus_web/device_info_plus_web.dart';

@ -52,7 +52,7 @@ class _MyAppState extends State<MyApp> {
}
},
child: MediaQuery(
data: MediaQueryData.fromWindow(WidgetsBinding.instance.window),
data: MediaQueryData.fromWindow(WidgetsBinding.instance!.window),
child: ScreenUtilInit(
designSize: Size(750, 1334),
// minTextAdapt: true,

@ -36,12 +36,13 @@ class _FacilityPreorderDatePickerState
List<int> _selectIndex = [];
@override
Widget build(BuildContext context) {
return BeeChooseDatePicker(
height: 700.h,
onPressed: () {
Get.back();
Get.back(result: _selectIndex);
},
body: Container(
height: 600.h,
@ -82,7 +83,7 @@ class _FacilityPreorderDatePickerState
return GestureDetector(
onTap: () {
print(getNum(start)+index);
if(!models.contains(getNum(start)+index)||start.add(Duration(minutes: 30 * index)).isAfter(DateTime.now())){
if(!models.contains(getNum(start)+index)||isPass(start.add(Duration(minutes: 30 * index)))){
if (_selectIndex.contains(index)) {
_selectIndex.remove(index);
} else {
@ -97,7 +98,7 @@ class _FacilityPreorderDatePickerState
BeeCheckRadio(
value: index,
groupValue: _selectIndex,
canCheck: models.contains(getNum(start)+index),
canCheck: models.contains(getNum(start)+index)||isPass(start.add(Duration(minutes: 30 * index))),
),
30.wb,
Text(

@ -47,23 +47,29 @@ class _FacilityPreorderPageState extends State<FacilityPreorderPage> {
final userProvider = Provider.of<UserProvider>(context);
return BeeScaffold(
title: '添加预订',
bodyColor: Colors.white,
systemStyle: SystemStyle.yellowBottomBar,
body: ListView(
padding: EdgeInsets.symmetric(vertical: 32.w),
children: [
Text('业主房屋').pSymmetric(h: 32.w),
ListTile(
leading: Image.asset(
R.ASSETS_ICONS_HOUSE_PNG,
height: 60.w,
width: 60.w,
Container(
color: Colors.white,
child:ListTile(
leading: Image.asset(
R.ASSETS_ICONS_HOUSE_PNG,
height: 60.w,
width: 60.w,
),
onTap: () => Get.to(() => AdviceHousePage()),
title: Text(S.of(context)!.tempPlotName),
subtitle: Text(userProvider.defaultHouse!.addressName),
trailing: Icon(CupertinoIcons.chevron_forward),
),
onTap: () => Get.to(() => AdviceHousePage()),
title: Text(S.of(context)!.tempPlotName),
subtitle: Text(userProvider.defaultHouse!.addressName),
trailing: Icon(CupertinoIcons.chevron_forward),
),
Text('业主房屋').pSymmetric(h: 32.w),
BeeDivider(
indent: 32.w,
endIndent: 32.w,
@ -99,9 +105,12 @@ class _FacilityPreorderPageState extends State<FacilityPreorderPage> {
height: 120.w,
onPressed: () async {
DateTime? date = await BeeDayPicker.pick(DateTime.now());
await Get.bottomSheet(FacilityPreorderDatePicker(typeModel: widget.typeModel,));
print(date);
if (date != null) {
startDate = date;
Get.bottomSheet(FacilityPreorderDatePicker(typeModel: widget.typeModel,));
List<int> dateList=FacilityPreorderDatePicker(typeModel: widget.typeModel) as List<int>;
print(dateList);
setState(() {});
}
},

@ -106,7 +106,7 @@ class _LineCardState extends State<LineCard> {
@override
void didChangeDependencies() {
WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
WidgetsBinding.instance!.addPostFrameCallback((timeStamp) {
_height = context.size?.height ?? 0;
print(context.size?.height);
setState(() {});

@ -55,7 +55,7 @@ class __BeeDayPickerState extends State<_BeeDayPicker> {
Widget build(BuildContext context) {
return BeeChooseDatePicker(
onPressed: () async{
Get.back();
Get.back(result: _date);
// await FacilityPreorderDatePicker();
},
body: CupertinoDatePicker(

@ -245,7 +245,7 @@ packages:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.16.0"
version: "1.15.0"
color:
dependency: transitive
description:
@ -408,7 +408,7 @@ packages:
name: fake_async
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0"
version: "1.2.0"
ffi:
dependency: transitive
description:
@ -717,7 +717,7 @@ packages:
name: js
url: "https://pub.dartlang.org"
source: hosted
version: "0.6.4"
version: "0.6.3"
json_annotation:
dependency: "direct main"
description:
@ -787,7 +787,7 @@ packages:
name: material_color_utilities
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.4"
version: "0.1.3"
meta:
dependency: transitive
description:
@ -892,7 +892,7 @@ packages:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.1"
version: "1.8.0"
path_drawing:
dependency: transitive
description:
@ -1172,7 +1172,7 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.2"
version: "1.8.1"
sqflite:
dependency: transitive
description:
@ -1235,7 +1235,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.9"
version: "0.4.8"
time:
dependency: transitive
description:
@ -1340,7 +1340,7 @@ packages:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.2"
version: "2.1.1"
velocity_x:
dependency: "direct main"
description:
@ -1405,5 +1405,5 @@ packages:
source: hosted
version: "3.1.0"
sdks:
dart: ">=2.17.0-0 <3.0.0"
dart: ">=2.15.0 <3.0.0"
flutter: ">=2.8.0"

Loading…
Cancel
Save