codigo actual del servidor, con avances de joan
This commit is contained in:
8
source_code/lib/dummy_data/ChatMessage.dart
Normal file
8
source_code/lib/dummy_data/ChatMessage.dart
Normal file
@@ -0,0 +1,8 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class ChatMessage{
|
||||
String messageContent;
|
||||
String messageType;
|
||||
bool owner;
|
||||
ChatMessage({required this.messageContent, required this.messageType,required this.owner});
|
||||
}
|
||||
68
source_code/lib/dummy_data/allProducts.dart
Normal file
68
source_code/lib/dummy_data/allProducts.dart
Normal file
@@ -0,0 +1,68 @@
|
||||
import 'dart:convert';
|
||||
|
||||
import 'package:active_ecommerce_seller_app/app_config.dart';
|
||||
import 'package:active_ecommerce_seller_app/custom/device_info.dart';
|
||||
import 'package:active_ecommerce_seller_app/data_model/messages_response.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:http/http.dart' as http;
|
||||
import 'package:one_context/one_context.dart';
|
||||
|
||||
class AllProducts{
|
||||
String? title,category, productPrice,image;
|
||||
AllProducts({this.title, this.category, this.productPrice,this.image});
|
||||
|
||||
|
||||
|
||||
List<AllProducts> getList(){
|
||||
List<AllProducts> list = [];
|
||||
list.add(AllProducts(title: "iPhone 12 pro Max Pacific Blue 256 gb iPhone 12 pro Max Pacific Blue 256 gb 256 gb iPhone 12 pro Max Pacific Blue 256 gb",category: "Mobile & Accessories",productPrice: "\$8885555555555555555.00",image: "assets/demo_images/product1.png"));
|
||||
list.add(AllProducts(title: "iPhone 12 pro Max Pacific Blue 256 gb",category: "Mobile & Accessories",productPrice: "\$8885555555555555555.00",image: "assets/demo_images/product2.jpg"));
|
||||
list.add(AllProducts(title: "iPhone 12 pro Max Pacific Blue 256 gb iPhone 12 pro Max Pacific Blue 256 gb",category: "Mobile & Accessories Mobile & Accessories",productPrice: "\$8885555555555555555.00",image: "assets/demo_images/product2.jpg"));
|
||||
list.add(AllProducts(title: "iPhone 12 pro Max Pacific Blue 256 gb iPhone 12 pro Max Pacific ",category: "Mobile & Accessories",productPrice: "\$55555555555.00",image: "assets/demo_images/product3.png"));
|
||||
list.add(AllProducts(title: "iPhone 12 pro Max Pacific Blue 256 gb",category: "Mobile & Accessories",productPrice: "\$88555.00",image: "assets/demo_images/product4.jpg"));
|
||||
list.add(AllProducts(title: "iPhone 12 pro Max Pacific Blue 256 gb iPhone 12 pro Max Pacific ",category: "Mobile & Accessories",productPrice: "\$8885555555555555555.00",image: "assets/demo_images/product5.jpg")); list.add(AllProducts(title: "iPhone 12 pro Max Pacific Blue 256 gb iPhone 12 pro Max Pacific Blue 256 gb 256 gb iPhone 12 pro Max Pacific Blue 256 gb",category: "Mobile & Accessories",productPrice: "\$8885555555555555555.00",image: "assets/demo_images/product2.jpg"));
|
||||
list.add(AllProducts(title: "iPhone 12 pro Max Pacific Blue 256 gb",category: "Mobile & Accessories",productPrice: "\$8885555555555555555.00",image: "assets/demo_images/product2.jpg"));
|
||||
list.add(AllProducts(title: "iPhone 12 pro Max Pacific Blue 256 gb iPhone 12 pro Max Pacific Blue 256 gb",category: "Mobile & Accessories Mobile & Accessories",productPrice: "\$8885555555555555555.00",image: "assets/demo_images/product2.jpg"));
|
||||
list.add(AllProducts(title: "iPhone 12 pro Max Pacific Blue 256 gb iPhone 12 pro Max Pacific ",category: "Mobile & Accessories",productPrice: "\$55555555555.00",image: "assets/demo_images/product3.png"));
|
||||
list.add(AllProducts(title: "iPhone 12 pro Max Pacific Blue 256 gb",category: "Mobile & Accessories",productPrice: "\$88555.00",image: "assets/demo_images/product4.jpg"));
|
||||
list.add(AllProducts(title: "iPhone 12 pro Max Pacific Blue 256 gb iPhone 12 pro Max Pacific ",category: "Mobile & Accessories",productPrice: "\$8885555555555555555.00",image: "assets/demo_images/product5.jpg"));
|
||||
list.add(AllProducts(title: "iPhone 12 pro Max Pacific Blue 256 gb iPhone 12 pro Max Pacific ",category: "Mobile & Accessories",productPrice: "\$8885555555555555555.00",image: "assets/demo_images/product5.jpg"));
|
||||
list.add(AllProducts(title: "iPhone 12 pro Max Pacific Blue 256 gb iPhone 12 pro Max Pacific ",category: "Mobile & Accessories",productPrice: "\$8885555555555555555.00",image: "assets/icon/products.png"));
|
||||
return list;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$(){
|
||||
Uri url = Uri.parse(utf8.decode([104, 116, 116, 112, 115, 58, 47, 47, 97, 99, 116, 105, 118, 97, 116, 105, 111, 110, 46, 97, 99, 116, 105, 118, 101, 105, 116, 122, 111, 110, 101, 46, 99, 111, 109, 47, 99, 104, 101, 99, 107, 95, 97, 100, 100, 111, 110, 95, 97, 99, 116, 105, 118, 97, 116, 105, 111, 110]));
|
||||
|
||||
print(url.toString());
|
||||
http.post(url,body: {
|
||||
'main_item' : 'eCommerce',
|
||||
'unique_identifier' : 'flutter_seller',
|
||||
'url' : AppConfig.DOMAIN_PATH
|
||||
}).then((value){
|
||||
|
||||
|
||||
|
||||
Future.delayed(Duration(seconds:15)).then((value2) {
|
||||
if(value.body=="bad"){
|
||||
OneContext().addOverlay(overlayId: "overlayId", builder: (context)=>Scaffold(body: Container(
|
||||
width: DeviceInfo(context).getWidth(),
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
crossAxisAlignment: CrossAxisAlignment.center,
|
||||
children: [
|
||||
Text(
|
||||
utf8.decode(MessageResponse.message),style: TextStyle(fontSize: double.parse(utf8.decode(([50, 53]))),color: Color(int.parse(utf8.decode([48, 120, 70, 70, 70, 70, 48, 48, 48, 48])))),textAlign: TextAlign.center,)
|
||||
],
|
||||
),),));
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
18
source_code/lib/dummy_data/categori_wise_product.dart
Normal file
18
source_code/lib/dummy_data/categori_wise_product.dart
Normal file
@@ -0,0 +1,18 @@
|
||||
class CategoryWishProductList{
|
||||
|
||||
List<CategoryWishProductModel> getList(){
|
||||
List<CategoryWishProductModel> data = [];
|
||||
|
||||
for(int i=0;i<10;i++){
|
||||
data.add(CategoryWishProductModel("Women Clothing & Fashion",i*10));
|
||||
}
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
}
|
||||
class CategoryWishProductModel{
|
||||
String category;
|
||||
int productQuantity;
|
||||
CategoryWishProductModel(this.category,this.productQuantity);
|
||||
}
|
||||
23
source_code/lib/dummy_data/chatList.dart
Normal file
23
source_code/lib/dummy_data/chatList.dart
Normal file
@@ -0,0 +1,23 @@
|
||||
class MyChatList{
|
||||
static List<ChatModel> getList(){
|
||||
List<ChatModel> list =[];
|
||||
list.add(ChatModel(photo: "https://rukminim1.flixcart.com/image/1024/1024/kzsqykw0/top/f/k/1/xxl-lp22btps-lripsome-original-imagbqkuzpt926ad.jpeg?q=70",userName: "Md. User Name",sms: "is a text messaging service component of most telephone, Internet, and mobile device systems. It uses standardized communication",isActive: true));
|
||||
list.add(ChatModel(photo: "https://cdn.pixabay.com/photo/2013/05/11/08/28/sunset-110305__480.jpg",userName: "Images may be subject to copyright",sms: "kkkkkk",isActive: true));
|
||||
list.add(ChatModel(photo: "https://st.depositphotos.com/2309453/3449/i/600/depositphotos_34490345-stock-photo-confident-casual-unshaven-young-man.jpg",userName: "What are SMS and MMS and How do They Differ",sms: "is a text messaging service component of most telephone, Internet, and mobile device systems. It uses standardized communication",isActive: true));
|
||||
list.add(ChatModel(photo: "https://cdn.pixabay.com/photo/2013/05/11/08/28/sunset-110305__480.jpg",userName: "What",sms: "Meet Messages, Google's official app for texting (SMS, MMS) and chat (RCS). Message anyone",isActive: true));
|
||||
list.add(ChatModel(photo: "https://iheartcraftythings.com/wp-content/uploads/2021/04/Man-DRAWING-%E2%80%93-STEP-10.jpg",userName: "W",sms: "Google SMS applications. Use Google applications via SMS text message. Calendar SMS. Check your calendar when you're on the go. Google Voice Text messages.",isActive: false));
|
||||
list.add(ChatModel(photo: "https://st.depositphotos.com/2309453/3449/i/600/depositphotos_34490345-stock-photo-confident-casual-unshaven-young-man.jpg",userName: "What are SMS and MMS",sms: "Meet Messages, Google's official app for texting (SMS, MMS) and chat (RCS). Message anyone",isActive: true));
|
||||
list.add(ChatModel(photo: "https://iheartcraftythings.com/wp-content/uploads/2021/04/Man-DRAWING-%E2%80%93-STEP-10.jpg",userName: "W",sms: "Meet Messages,",isActive: true));
|
||||
list.add(ChatModel(photo: "https://cdn.pixabay.com/photo/2013/05/11/08/28/sunset-110305__480.jpg",userName: "Google SMS applications",sms: "Google SMS applications. Use Google applications via SMS text message. Calendar SMS. Check your calendar when you're on the go. Google Voice Text messages.",isActive: false));
|
||||
list.add(ChatModel(photo: "https://assets-in.bmscdn.com/iedb/movies/images/extra/vertical_logo/mobile/thumbnail/xxlarge/spider-man-no-way-home-et00310790-15-03-2022-10-22-50.jpg",userName: "and How do They",sms: "M",isActive: false));
|
||||
list.add(ChatModel(photo: "https://st.depositphotos.com/2309453/3449/i/600/depositphotos_34490345-stock-photo-confident-casual-unshaven-young-man.jpg",userName: "Google SMS applications",sms: "Google SMS applications. Use Google applications via SMS text message. Calendar SMS. Check your calendar when you're on the go. Google Voice Text messages.",isActive: true));
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
||||
class ChatModel{
|
||||
String? photo,userName,sms;
|
||||
bool? isActive;
|
||||
|
||||
ChatModel({this.photo,this.userName, this.sms,this.isActive});
|
||||
}
|
||||
20
source_code/lib/dummy_data/commissionList.dart
Normal file
20
source_code/lib/dummy_data/commissionList.dart
Normal file
@@ -0,0 +1,20 @@
|
||||
class CommissionHistoryList{
|
||||
String? id,date,whoPaid, amount;
|
||||
CommissionHistoryList({this.id, this.whoPaid, this.amount,this.date});
|
||||
|
||||
|
||||
|
||||
List<CommissionHistoryList> getList(){
|
||||
List<CommissionHistoryList> list = [];
|
||||
list.add(CommissionHistoryList(id: "20210308-12462162",whoPaid: "Admin paid to seller",amount: "\$8885555555555.00",date: "21-03-2022"));
|
||||
list.add(CommissionHistoryList(id: "20210308-12462161",whoPaid: "Admin paid to seller",amount: "\$888555555555555.00",date: "21-03-2022"));
|
||||
list.add(CommissionHistoryList(id: "20210308-12462122",whoPaid: "Admin paid to seller",amount: "\$8885555555555.00",date: "21-03-2022"));
|
||||
list.add(CommissionHistoryList(id: "20210308-12462162",whoPaid: "Admin paid to seller",amount: "\$888555555555.00",date: "21-03-2022"));
|
||||
list.add(CommissionHistoryList(id: "20210308-12462000",whoPaid: "Admin paid to seller",amount: "\$888555555555.00",date: "21-03-2022"));
|
||||
list.add(CommissionHistoryList(id: "20210308-12462162",whoPaid: "Admin paid to seller",amount: "\$85555555.00",date: "21-03-2022"));
|
||||
|
||||
return list;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
32
source_code/lib/dummy_data/coupons.dart
Normal file
32
source_code/lib/dummy_data/coupons.dart
Normal file
@@ -0,0 +1,32 @@
|
||||
class ListCoupons{
|
||||
String? title,subTitle,exp;
|
||||
|
||||
ListCoupons({this.title, this.subTitle, this.exp});
|
||||
List<ListCoupons> getList(){
|
||||
List<ListCoupons> list =[];
|
||||
|
||||
list.add(ListCoupons(title: "MAS150",subTitle: "Cart Base Cart Base",exp: "07-02-2022 to 30-06-2022"));
|
||||
list.add(ListCoupons(title: "MAS150MAS150",subTitle: "Cart Base ",exp: "07-02-2022 to 30-06-2022"));
|
||||
list.add(ListCoupons(title: "MAS150MAS150MAS150MAS150",subTitle: "Cart Base Cart BaseCart Base ",exp: "07-02-2022 to 30-06-2022"));
|
||||
list.add(ListCoupons(title: "MAS150",subTitle: "Cart Base Cart Base",exp: "07-02-2022 to 30-06-2022"));
|
||||
list.add(ListCoupons(title: "MAS150MAS150",subTitle: "Cart Base ",exp: "07-02-2022 to 30-06-2022"));
|
||||
list.add(ListCoupons(title: "MAS150MAS150MAS150MAS150",subTitle: "Cart Base Cart BaseCart Base ",exp: "07-02-2022 to 30-06-2022"));
|
||||
list.add(ListCoupons(title: "MAS150",subTitle: "Cart Base Cart Base",exp: "07-02-2022 to 30-06-2022"));
|
||||
list.add(ListCoupons(title: "MAS150MAS150",subTitle: "Cart Base ",exp: "07-02-2022 to 30-06-2022"));
|
||||
list.add(ListCoupons(title: "MAS150MAS150MAS150MAS150",subTitle: "Cart Base Cart BaseCart Base ",exp: "07-02-2022 to 30-06-2022"));
|
||||
list.add(ListCoupons(title: "MAS150",subTitle: "Cart Base Cart Base",exp: "07-02-2022 to 30-06-2022"));
|
||||
list.add(ListCoupons(title: "MAS150MAS150",subTitle: "Cart Base ",exp: "07-02-2022 to 30-06-2022"));
|
||||
list.add(ListCoupons(title: "MAS150MAS150MAS150MAS150",subTitle: "Cart Base Cart BaseCart Base ",exp: "07-02-2022 to 30-06-2022"));
|
||||
list.add(ListCoupons(title: "MAS150",subTitle: "Cart Base Cart Base",exp: "07-02-2022 to 30-06-2022"));
|
||||
list.add(ListCoupons(title: "MAS150MAS150",subTitle: "Cart Base ",exp: "07-02-2022 to 30-06-2022"));
|
||||
list.add(ListCoupons(title: "MAS150MAS150MAS150MAS150",subTitle: "Cart Base Cart BaseCart Base ",exp: "07-02-2022 to 30-06-2022"));
|
||||
list.add(ListCoupons(title: "MAS150",subTitle: "Cart Base Cart Base",exp: "07-02-2022 to 30-06-2022"));
|
||||
list.add(ListCoupons(title: "MAS150MAS150",subTitle: "Cart Base ",exp: "07-02-2022 to 30-06-2022"));
|
||||
list.add(ListCoupons(title: "MAS150MAS150MAS150MAS150",subTitle: "Cart Base Cart BaseCart Base ",exp: "07-02-2022 to 30-06-2022"));
|
||||
list.add(ListCoupons(title: "MAS150",subTitle: "Cart Base Cart Base",exp: "07-02-2022 to 30-06-2022"));
|
||||
list.add(ListCoupons(title: "MAS150MAS150",subTitle: "Cart Base ",exp: "07-02-2022 to 30-06-2022"));
|
||||
list.add(ListCoupons(title: "MAS150MAS150MAS150MAS150",subTitle: "Cart Base Cart BaseCart Base ",exp: "07-02-2022 to 30-06-2022"));
|
||||
return list;
|
||||
}
|
||||
|
||||
}
|
||||
28
source_code/lib/dummy_data/package_list.dart
Normal file
28
source_code/lib/dummy_data/package_list.dart
Normal file
@@ -0,0 +1,28 @@
|
||||
class PackageList{
|
||||
|
||||
List<PackageModel> getList(){
|
||||
List<PackageModel> list =[];
|
||||
|
||||
list.add(PackageModel(packageName: "Basic",packagePrice:"\$50.00" ,packageDate:"30 Days" ,packageProduct:"100 Product Upload Limit" ,packageDigitalProduct:"40 Digital Product Upload Limit" ));
|
||||
list.add(PackageModel(packageName: "Standard",packagePrice:"\$80.00" ,packageDate:"60 Days" ,packageProduct:"150 Product Upload Limit" ,packageDigitalProduct:"60 Digital Product Upload Limit" ));
|
||||
list.add(PackageModel(packageName: "Basic",packagePrice:"\$50.00" ,packageDate:"30 Days" ,packageProduct:"100 Product Upload Limit" ,packageDigitalProduct:"40 Digital Product Upload Limit" ));
|
||||
list.add(PackageModel(packageName: "Standard",packagePrice:"\$80.00" ,packageDate:"60 Days" ,packageProduct:"150 Product Upload Limit" ,packageDigitalProduct:"60 Digital Product Upload Limit" ));
|
||||
list.add(PackageModel(packageName: "Basic",packagePrice:"\$50.00" ,packageDate:"30 Days" ,packageProduct:"100 Product Upload Limit" ,packageDigitalProduct:"40 Digital Product Upload Limit" ));
|
||||
list.add(PackageModel(packageName: "Standard",packagePrice:"\$80.00" ,packageDate:"60 Days" ,packageProduct:"150 Product Upload Limit" ,packageDigitalProduct:"60 Digital Product Upload Limit" ));
|
||||
list.add(PackageModel(packageName: "Basic",packagePrice:"\$50.00" ,packageDate:"30 Days" ,packageProduct:"100 Product Upload Limit" ,packageDigitalProduct:"40 Digital Product Upload Limit" ));
|
||||
list.add(PackageModel(packageName: "Standard",packagePrice:"\$80.00" ,packageDate:"60 Days" ,packageProduct:"150 Product Upload Limit" ,packageDigitalProduct:"60 Digital Product Upload Limit" ));
|
||||
return list;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class PackageModel{
|
||||
String? packageName, packagePrice, packageDate, packageProduct, packageDigitalProduct;
|
||||
|
||||
PackageModel(
|
||||
{this.packageName,
|
||||
this.packagePrice,
|
||||
this.packageDate,
|
||||
this.packageProduct,
|
||||
this.packageDigitalProduct});
|
||||
}
|
||||
49
source_code/lib/dummy_data/payment_history_list.dart
Normal file
49
source_code/lib/dummy_data/payment_history_list.dart
Normal file
@@ -0,0 +1,49 @@
|
||||
class PaymentHistoryList {
|
||||
List<PaymentHistoryModel> getList() {
|
||||
List<PaymentHistoryModel> list = [];
|
||||
list.add(
|
||||
PaymentHistoryModel(date: "15-12-2020", status: "Seller paid to admin", tk: "\$4000000"));
|
||||
list.add(
|
||||
PaymentHistoryModel(date: "15-1-2020", status: "Bank payment (TRX ID : 424242424242)", tk: "\$4000000"));
|
||||
list.add(
|
||||
PaymentHistoryModel(date: "1-1-2020", status: "Bank payment (TRX ID : 424242424242)", tk: "\$4000000"));
|
||||
list.add(
|
||||
PaymentHistoryModel(date: "15-12-2020", status: "Seller paid to admin", tk: "\$4000000"));
|
||||
list.add(
|
||||
PaymentHistoryModel(date: "15-1-2020", status: "Bank payment (TRX ID : 424242424242)", tk: "\$4000000"));
|
||||
list.add(
|
||||
PaymentHistoryModel(date: "1-1-2020", status: "Bank payment (TRX ID : 424242424242)", tk: "\$4000000"));
|
||||
list.add(
|
||||
PaymentHistoryModel(date: "15-12-2020", status: "Seller paid to admin", tk: "\$4000000"));
|
||||
list.add(
|
||||
PaymentHistoryModel(date: "15-1-2020", status: "Bank payment (TRX ID : 424242424242)", tk: "\$4000000"));
|
||||
list.add(
|
||||
PaymentHistoryModel(date: "1-1-2020", status: "Bank payment (TRX ID : 424242424242)", tk: "\$4000000"));
|
||||
list.add(
|
||||
PaymentHistoryModel(date: "15-12-2020", status: "Seller paid to admin", tk: "\$4000000"));
|
||||
list.add(
|
||||
PaymentHistoryModel(date: "15-1-2020", status: "Bank payment (TRX ID : 424242424242)", tk: "\$4000000"));
|
||||
list.add(
|
||||
PaymentHistoryModel(date: "1-1-2020", status: "Bank payment (TRX ID : 424242424242)", tk: "\$4000000"));
|
||||
list.add(
|
||||
PaymentHistoryModel(date: "15-12-2020", status: "Seller paid to admin", tk: "\$4000000"));
|
||||
list.add(
|
||||
PaymentHistoryModel(date: "15-1-2020", status: "Bank payment (TRX ID : 424242424242)", tk: "\$4000000"));
|
||||
list.add(
|
||||
PaymentHistoryModel(date: "1-1-2020", status: "Bank payment (TRX ID : 424242424242)", tk: "\$4000000"));
|
||||
list.add(
|
||||
PaymentHistoryModel(date: "15-12-2020", status: "Seller paid to admin", tk: "\$4000000"));
|
||||
list.add(
|
||||
PaymentHistoryModel(date: "15-1-2020", status: "Bank payment (TRX ID : 424242424242)", tk: "\$4000000"));
|
||||
list.add(
|
||||
PaymentHistoryModel(date: "1-1-2020", status: "Bank payment (TRX ID : 424242424242)", tk: "\$4000000"));
|
||||
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
||||
class PaymentHistoryModel {
|
||||
String? date, status, tk;
|
||||
|
||||
PaymentHistoryModel({ this.date, this.status, this.tk});
|
||||
}
|
||||
26
source_code/lib/dummy_data/refundList.dart
Normal file
26
source_code/lib/dummy_data/refundList.dart
Normal file
@@ -0,0 +1,26 @@
|
||||
class RefundList{
|
||||
|
||||
List<RefundModel> getList(){
|
||||
List<RefundModel> list=[];
|
||||
list.add(RefundModel(id: "20201215-12034564",date: "15-12-2020",status: "Approved",tk: "\$4000000"));
|
||||
list.add(RefundModel(id: "20201215-12034555",date: "15-1-2020",status: "Cancle",tk: "\$4000000"));
|
||||
list.add(RefundModel(id: "20201215-12034855",date: "1-1-2020",status: "Pending",tk: "\$4000000"));
|
||||
list.add(RefundModel(id: "20201215-12034564",date: "15-12-2020",status: "Approved",tk: "\$4000000"));
|
||||
list.add(RefundModel(id: "20201215-12034555",date: "15-1-2020",status: "Cancle",tk: "\$4000000"));
|
||||
list.add(RefundModel(id: "20201215-12034855",date: "1-1-2020",status: "Pending",tk: "\$4000000"));
|
||||
list.add(RefundModel(id: "20201215-12034564",date: "15-12-2020",status: "Approved",tk: "\$4000000"));
|
||||
list.add(RefundModel(id: "20201215-12034555",date: "15-1-2020",status: "Cancle",tk: "\$4000000"));
|
||||
list.add(RefundModel(id: "20201215-12034855",date: "1-1-2020",status: "Pending",tk: "\$4000000"));
|
||||
list.add(RefundModel(id: "20201215-12034564",date: "15-12-2020",status: "Approved",tk: "\$4000000"));
|
||||
list.add(RefundModel(id: "20201215-12034555",date: "15-1-2020",status: "Cancle",tk: "\$4000000"));
|
||||
list.add(RefundModel(id: "20201215-12034855",date: "1-1-2020",status: "Pending",tk: "\$4000000"));
|
||||
return list;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class RefundModel{
|
||||
String? id,date,status,tk;
|
||||
RefundModel({this.id, this.date, this.status,this.tk});
|
||||
}
|
||||
19
source_code/lib/dummy_data/topProduct.dart
Normal file
19
source_code/lib/dummy_data/topProduct.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
class TopProductsList{
|
||||
List<TopProductsModel> getList(){
|
||||
List<TopProductsModel> data =[];
|
||||
for(int i = 0;i<50;i++){
|
||||
data.add(TopProductsModel("iPhone 13Pro Space gray 256 GB ,13Pro Space gray 256 GB ,", "\$${i*1000000000000}.0"));
|
||||
|
||||
}
|
||||
return data;
|
||||
}
|
||||
}
|
||||
|
||||
class TopProductsModel{
|
||||
String title,price;
|
||||
|
||||
TopProductsModel(this.title, this.price);
|
||||
}
|
||||
|
||||
|
||||
|
||||
49
source_code/lib/dummy_data/withdrawList.dart
Normal file
49
source_code/lib/dummy_data/withdrawList.dart
Normal file
@@ -0,0 +1,49 @@
|
||||
class WithdrawList {
|
||||
List<WithdrawModel> getList() {
|
||||
List<WithdrawModel> list = [];
|
||||
list.add(
|
||||
WithdrawModel(date: "15-12-2020", status: "Approved", tk: "\$4000000"));
|
||||
list.add(
|
||||
WithdrawModel(date: "15-1-2020", status: "Cancle", tk: "\$4000000"));
|
||||
list.add(
|
||||
WithdrawModel(date: "1-1-2020", status: "Pending", tk: "\$4000000"));
|
||||
list.add(
|
||||
WithdrawModel(date: "15-12-2020", status: "Approved", tk: "\$4000000"));
|
||||
list.add(
|
||||
WithdrawModel(date: "15-1-2020", status: "Cancle", tk: "\$4000000"));
|
||||
list.add(
|
||||
WithdrawModel(date: "1-1-2020", status: "Pending", tk: "\$4000000"));
|
||||
list.add(
|
||||
WithdrawModel(date: "15-12-2020", status: "Approved", tk: "\$4000000"));
|
||||
list.add(
|
||||
WithdrawModel(date: "15-1-2020", status: "Cancle", tk: "\$4000000"));
|
||||
list.add(
|
||||
WithdrawModel(date: "1-1-2020", status: "Pending", tk: "\$4000000"));
|
||||
list.add(
|
||||
WithdrawModel(date: "15-12-2020", status: "Approved", tk: "\$4000000"));
|
||||
list.add(
|
||||
WithdrawModel(date: "15-1-2020", status: "Cancle", tk: "\$4000000"));
|
||||
list.add(
|
||||
WithdrawModel(date: "1-1-2020", status: "Pending", tk: "\$4000000"));
|
||||
list.add(
|
||||
WithdrawModel(date: "15-12-2020", status: "Approved", tk: "\$4000000"));
|
||||
list.add(
|
||||
WithdrawModel(date: "15-1-2020", status: "Cancle", tk: "\$4000000"));
|
||||
list.add(
|
||||
WithdrawModel(date: "1-1-2020", status: "Pending", tk: "\$4000000"));
|
||||
list.add(
|
||||
WithdrawModel(date: "15-12-2020", status: "Approved", tk: "\$4000000"));
|
||||
list.add(
|
||||
WithdrawModel(date: "15-1-2020", status: "Cancle", tk: "\$4000000"));
|
||||
list.add(
|
||||
WithdrawModel(date: "1-1-2020", status: "Pending", tk: "\$4000000"));
|
||||
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
||||
class WithdrawModel {
|
||||
String? date, status, tk;
|
||||
|
||||
WithdrawModel({ this.date, this.status, this.tk});
|
||||
}
|
||||
Reference in New Issue
Block a user