parent
adc0960307
commit
87f399aca3
@ -0,0 +1,3 @@
|
||||
class AppValues {
|
||||
static const String plotName = '人才公寓智慧小区';
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
import 'package:flustars/flustars.dart';
|
||||
|
||||
class CarParkingModel {
|
||||
String code;
|
||||
int type;
|
||||
String effectiveTimeEnd;
|
||||
DateTime get effectiveDate => DateUtil.getDateTime(effectiveTimeEnd);
|
||||
bool get outdated {
|
||||
DateTime now = DateTime.now();
|
||||
return effectiveDate.isAfter(now);
|
||||
}
|
||||
|
||||
CarParkingModel({this.code, this.type, this.effectiveTimeEnd});
|
||||
|
||||
CarParkingModel.fromJson(Map<String, dynamic> json) {
|
||||
code = json['code'];
|
||||
type = json['type'];
|
||||
effectiveTimeEnd = json['effectiveTimeEnd'];
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final Map<String, dynamic> data = new Map<String, dynamic>();
|
||||
data['code'] = this.code;
|
||||
data['type'] = this.type;
|
||||
data['effectiveTimeEnd'] = this.effectiveTimeEnd;
|
||||
return data;
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
import 'package:akuCommunity/model/user/car_parking_model.dart';
|
||||
|
||||
class CarParkingFunc {
|
||||
static Future<CarParkingModel> getCarParkingModels() async {
|
||||
// return
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
import 'package:akuCommunity/widget/bee_scaffold.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class ManageCarParkingPage extends StatefulWidget {
|
||||
ManageCarParkingPage({Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_ManageCarParkingPageState createState() => _ManageCarParkingPageState();
|
||||
}
|
||||
|
||||
class _ManageCarParkingPageState extends State<ManageCarParkingPage> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return BeeScaffold(title: '我的车位');
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class ManageCarParkingCard extends StatelessWidget {
|
||||
const ManageCarParkingCard({Key key}) : super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container();
|
||||
}
|
||||
}
|
Loading…
Reference in new issue