# Conflicts: # lib/constants/application_objects.dart # lib/pages/home/home_page.dart # pubspec.yamlpull/1/head
commit
04dd9c7e48
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 478 B |
After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 2.4 KiB |
@ -0,0 +1,11 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
extension ColorExt on Color {
|
||||
///获得此颜色的互补色
|
||||
Color get complementary {
|
||||
var r = ~this.red;
|
||||
var g = ~this.green;
|
||||
var b = ~this.blue;
|
||||
return Color.fromARGB(this.alpha, r, g, b);
|
||||
}
|
||||
}
|
@ -0,0 +1,40 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'hall_list_model.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class HallListModel {
|
||||
final int id;
|
||||
final String title;
|
||||
final int status;
|
||||
final int type;
|
||||
final int sex;
|
||||
final int serviceObject;
|
||||
final String content;
|
||||
final String appointmentDate;
|
||||
final String appointmentAddress;
|
||||
final int rewardType;
|
||||
final int reward;
|
||||
final int createType;
|
||||
final String? createName;
|
||||
final String createDate;
|
||||
factory HallListModel.fromJson(Map<String, dynamic> json) =>
|
||||
_$HallListModelFromJson(json);
|
||||
|
||||
const HallListModel({
|
||||
required this.id,
|
||||
required this.title,
|
||||
required this.status,
|
||||
required this.type,
|
||||
required this.sex,
|
||||
required this.serviceObject,
|
||||
required this.content,
|
||||
required this.appointmentDate,
|
||||
required this.appointmentAddress,
|
||||
required this.rewardType,
|
||||
required this.reward,
|
||||
required this.createType,
|
||||
this.createName,
|
||||
required this.createDate,
|
||||
});
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'hall_list_model.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
HallListModel _$HallListModelFromJson(Map<String, dynamic> json) =>
|
||||
HallListModel(
|
||||
id: json['id'] as int,
|
||||
title: json['title'] as String,
|
||||
status: json['status'] as int,
|
||||
type: json['type'] as int,
|
||||
sex: json['sex'] as int,
|
||||
serviceObject: json['serviceObject'] as int,
|
||||
content: json['content'] as String,
|
||||
appointmentDate: json['appointmentDate'] as String,
|
||||
appointmentAddress: json['appointmentAddress'] as String,
|
||||
rewardType: json['rewardType'] as int,
|
||||
reward: json['reward'] as int,
|
||||
createType: json['createType'] as int,
|
||||
createName: json['createName'] as String?,
|
||||
createDate: json['createDate'] as String,
|
||||
);
|
@ -0,0 +1,41 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'my_take_task_list_model.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class MyTakeTaskListModel {
|
||||
final int id;
|
||||
final String title;
|
||||
final int status;
|
||||
final int type;
|
||||
final int sex;
|
||||
final int serviceObject;
|
||||
final String content;
|
||||
final String appointmentDate;
|
||||
final String appointmentAddress;
|
||||
final int rewardType;
|
||||
final int reward;
|
||||
final int createType;
|
||||
final String? createName;
|
||||
final String createDate;
|
||||
|
||||
factory MyTakeTaskListModel.fromJson(Map<String, dynamic> json) =>
|
||||
_$MyTakeTaskListModelFromJson(json);
|
||||
|
||||
const MyTakeTaskListModel({
|
||||
required this.id,
|
||||
required this.title,
|
||||
required this.status,
|
||||
required this.type,
|
||||
required this.sex,
|
||||
required this.serviceObject,
|
||||
required this.content,
|
||||
required this.appointmentDate,
|
||||
required this.appointmentAddress,
|
||||
required this.rewardType,
|
||||
required this.reward,
|
||||
required this.createType,
|
||||
this.createName,
|
||||
required this.createDate,
|
||||
});
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'my_take_task_list_model.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
MyTakeTaskListModel _$MyTakeTaskListModelFromJson(Map<String, dynamic> json) =>
|
||||
MyTakeTaskListModel(
|
||||
id: json['id'] as int,
|
||||
title: json['title'] as String,
|
||||
status: json['status'] as int,
|
||||
type: json['type'] as int,
|
||||
sex: json['sex'] as int,
|
||||
serviceObject: json['serviceObject'] as int,
|
||||
content: json['content'] as String,
|
||||
appointmentDate: json['appointmentDate'] as String,
|
||||
appointmentAddress: json['appointmentAddress'] as String,
|
||||
rewardType: json['rewardType'] as int,
|
||||
reward: json['reward'] as int,
|
||||
createType: json['createType'] as int,
|
||||
createName: json['createName'] as String?,
|
||||
createDate: json['createDate'] as String,
|
||||
);
|
@ -0,0 +1,40 @@
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
|
||||
part 'my_task_list_model.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class MyTaskListModel {
|
||||
final int id;
|
||||
final String title;
|
||||
final int status;
|
||||
final int type;
|
||||
final int sex;
|
||||
final int serviceObject;
|
||||
final String content;
|
||||
final String appointmentDate;
|
||||
final String appointmentAddress;
|
||||
final int rewardType;
|
||||
final int reward;
|
||||
final int createType;
|
||||
final String? createName;
|
||||
final String createDate;
|
||||
factory MyTaskListModel.fromJson(Map<String, dynamic> json) =>
|
||||
_$MyTaskListModelFromJson(json);
|
||||
|
||||
const MyTaskListModel({
|
||||
required this.id,
|
||||
required this.title,
|
||||
required this.status,
|
||||
required this.type,
|
||||
required this.sex,
|
||||
required this.serviceObject,
|
||||
required this.content,
|
||||
required this.appointmentDate,
|
||||
required this.appointmentAddress,
|
||||
required this.rewardType,
|
||||
required this.reward,
|
||||
required this.createType,
|
||||
this.createName,
|
||||
required this.createDate,
|
||||
});
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'my_task_list_model.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
MyTaskListModel _$MyTaskListModelFromJson(Map<String, dynamic> json) =>
|
||||
MyTaskListModel(
|
||||
id: json['id'] as int,
|
||||
title: json['title'] as String,
|
||||
status: json['status'] as int,
|
||||
type: json['type'] as int,
|
||||
sex: json['sex'] as int,
|
||||
serviceObject: json['serviceObject'] as int,
|
||||
content: json['content'] as String,
|
||||
appointmentDate: json['appointmentDate'] as String,
|
||||
appointmentAddress: json['appointmentAddress'] as String,
|
||||
rewardType: json['rewardType'] as int,
|
||||
reward: json['reward'] as int,
|
||||
createType: json['createType'] as int,
|
||||
createName: json['createName'] as String?,
|
||||
createDate: json['createDate'] as String,
|
||||
);
|
@ -1,54 +0,0 @@
|
||||
import 'package:aku_new_community/utils/headers.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class HomeSearch extends StatefulWidget {
|
||||
HomeSearch({Key? key}) : super(key: key);
|
||||
|
||||
@override
|
||||
_HomeSearchState createState() => _HomeSearchState();
|
||||
}
|
||||
|
||||
class _HomeSearchState extends State<HomeSearch> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Container(
|
||||
// decoration: BoxDecoration(
|
||||
// gradient: LinearGradient(
|
||||
// begin: Alignment.centerLeft,
|
||||
// end: Alignment.centerRight,
|
||||
// colors: [Color(0xffffd000), Color(0xffffbd00)],
|
||||
// ),
|
||||
// ),
|
||||
color: Colors.white,
|
||||
padding: EdgeInsets.only(
|
||||
top: MediaQuery.of(context).padding.top,
|
||||
left: 32.w,
|
||||
right: 32.w,
|
||||
bottom: 16.w,
|
||||
),
|
||||
// child: MaterialButton(
|
||||
// materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||
// height: 72.w,
|
||||
// shape: StadiumBorder(),
|
||||
// elevation: 0,
|
||||
// minWidth: double.infinity,
|
||||
// color: Color(0xFFF3F3F3),
|
||||
// onPressed: () {
|
||||
// Get.to(() => BeeSearch());
|
||||
// },
|
||||
// child: Row(
|
||||
// children: [
|
||||
// Icon(
|
||||
// Icons.search,
|
||||
// size: 32.w,
|
||||
// color: Color(0xFF666666),
|
||||
// ),
|
||||
// 10.wb,
|
||||
// '搜索应用'.text.size(28.sp).color(ktextSubColor).make().expand(),
|
||||
// ],
|
||||
// ),
|
||||
// ),
|
||||
);
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue