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

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

@ -4,7 +4,6 @@
// ignore_for_file: directives_ordering // ignore_for_file: directives_ordering
// ignore_for_file: lines_longer_than_80_chars // 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:audio_session/audio_session_web.dart';
import 'package:device_info_plus_web/device_info_plus_web.dart'; import 'package:device_info_plus_web/device_info_plus_web.dart';

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

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

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

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

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

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

Loading…
Cancel
Save