Initial commit for complete UI

This commit is contained in:
2025-05-29 14:59:31 +05:30
commit 1f0ec17edc
170 changed files with 7211 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
import 'package:glowwheels/models/serviceboy_model.dart';
class Order {
final String customerName;
final String mobileNumber;
final String serviceType;
final String service;
final String price;
final String time;
final String date;
final String carName;
final String status;
final String imagePath;
ServiceBoy? assignedBoy;
Order({
required this.customerName,
required this.mobileNumber,
required this.serviceType,
required this.service,
required this.price,
required this.time,
required this.date,
required this.carName,
required this.status,
required this.imagePath,
this.assignedBoy,
});
}

View File

@@ -0,0 +1,6 @@
class ServiceBoy {
final String name;
final String phone;
ServiceBoy({required this.name, required this.phone});
}

View File

@@ -0,0 +1,53 @@
import 'package:hive/hive.dart';
part 'shop_model.g.dart';
@HiveType(typeId: 1)
class ShopModel {
@HiveField(0)
final String id;
@HiveField(1)
final String image;
@HiveField(2)
final String mobile;
@HiveField(3)
final String email;
@HiveField(4)
final String shopName;
@HiveField(5)
final String address; // ✅ NEW
ShopModel({
required this.id,
required this.image,
required this.mobile,
required this.email,
required this.shopName,
required this.address,
});
factory ShopModel.fromJson(Map<String, dynamic> json) {
return ShopModel(
id: json['id'] ?? '',
image: json['image'] ?? '',
mobile: json['mobile'] ?? '',
email: json['email'] ?? '',
shopName: json['shopName'] ?? '',
address: json['address'] ?? '', // ✅ NEW
);
}
Map<String, dynamic> toJson() => {
'id': id,
'image': image,
'mobile': mobile,
'email': email,
'shopName': shopName,
'address': address, // ✅ NEW
};
}

View File

@@ -0,0 +1,56 @@
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'shop_model.dart';
// **************************************************************************
// TypeAdapterGenerator
// **************************************************************************
class ShopModelAdapter extends TypeAdapter<ShopModel> {
@override
final int typeId = 1;
@override
ShopModel read(BinaryReader reader) {
final numOfFields = reader.readByte();
final fields = <int, dynamic>{
for (int i = 0; i < numOfFields; i++) reader.readByte(): reader.read(),
};
return ShopModel(
id: fields[0] as String,
image: fields[1] as String,
mobile: fields[2] as String,
email: fields[3] as String,
shopName: fields[4] as String,
address: fields[5] as String,
);
}
@override
void write(BinaryWriter writer, ShopModel obj) {
writer
..writeByte(6)
..writeByte(0)
..write(obj.id)
..writeByte(1)
..write(obj.image)
..writeByte(2)
..write(obj.mobile)
..writeByte(3)
..write(obj.email)
..writeByte(4)
..write(obj.shopName)
..writeByte(5)
..write(obj.address);
}
@override
int get hashCode => typeId.hashCode;
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is ShopModelAdapter &&
runtimeType == other.runtimeType &&
typeId == other.typeId;
}