Nuevos cambios hechos de diseño

This commit is contained in:
ellecio2
2023-08-23 17:33:44 -04:00
parent 7a806f84ff
commit d2e9ba53ab
3485 changed files with 691106 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
import 'package:active_ecommerce_seller_app/custom/localization.dart';
import 'package:one_context/one_context.dart';
class DeliveryStatus {
String option_key;
String name;
DeliveryStatus(this.option_key, this.name);
static List<DeliveryStatus> getDeliveryStatusList() {
return <DeliveryStatus>[
DeliveryStatus('', LangText(context: OneContext().context).getLocal()!.all_ucf),
DeliveryStatus('pending', LangText(context: OneContext().context).getLocal()!.pending_ucf),
DeliveryStatus('confirmed', LangText(context: OneContext().context).getLocal()!.confirmed_ucf),
DeliveryStatus('picked_up', LangText(context: OneContext().context).getLocal()!.picked_up_ucf),
DeliveryStatus('on_the_way', LangText(context: OneContext().context).getLocal()!.on_the_way_ucf),
DeliveryStatus('delivered', LangText(context: OneContext().context).getLocal()!.delivered_ucf),
DeliveryStatus('cancelled', LangText(context: OneContext().context).getLocal()!.cancel_ucf),
];
}
static List<DeliveryStatus> getDeliveryStatusListForUpdate() {
return <DeliveryStatus>[
DeliveryStatus('pending', LangText(context: OneContext().context).getLocal()!.pending_ucf),
DeliveryStatus('confirmed', LangText(context: OneContext().context).getLocal()!.confirmed_ucf),
DeliveryStatus('picked_up', LangText(context: OneContext().context).getLocal()!.picked_up_ucf),
DeliveryStatus('on_the_way', LangText(context: OneContext().context).getLocal()!.on_the_way_ucf),
DeliveryStatus('delivered', LangText(context: OneContext().context).getLocal()!.delivered_ucf),
DeliveryStatus('cancelled', LangText(context: OneContext().context).getLocal()!.cancel_ucf),
];
}
}

View File

@@ -0,0 +1,24 @@
import 'package:active_ecommerce_seller_app/custom/localization.dart';
import 'package:one_context/one_context.dart';
class PaymentStatus {
String option_key;
String name;
PaymentStatus(this.option_key, this.name);
static List<PaymentStatus> getPaymentStatusList() {
return <PaymentStatus>[
PaymentStatus('', LangText(context: OneContext().context).getLocal()!.all_ucf),
PaymentStatus('paid', LangText(context: OneContext().context).getLocal()!.paid_ucf),
PaymentStatus('unpaid', LangText(context: OneContext().context).getLocal()!.unpaid_ucf),
];
}
static List<PaymentStatus> getPaymentStatusListForUpdater() {
return <PaymentStatus>[
PaymentStatus('paid', LangText(context: OneContext().context).getLocal()!.paid_ucf,),
PaymentStatus('unpaid', LangText(context: OneContext().context).getLocal()!.unpaid_ucf),
];
}
}

View File

@@ -0,0 +1,15 @@
import 'package:flutter/cupertino.dart';
class AppStyles{
static double layoutMargin = 16;
static double listItemsMargin=16;
static double itemMargin=16;
static FontWeight normal = FontWeight.normal;
static FontWeight medium = FontWeight.w500;
static FontWeight bold = FontWeight.bold;
static FontWeight extraBold = FontWeight.w800;
static FontWeight light = FontWeight.w400;
static FontWeight extraLight = FontWeight.w300;
}

View File

@@ -0,0 +1,23 @@
import 'package:active_ecommerce_seller_app/data_model/language_list_response.dart';
class CommonDropDownItem{
String? key,value;
CommonDropDownItem(this.key, this.value);
}
class ColorModel{
String? key,value,name;
ColorModel(this.key, this.value);
}
class LanguageDropModel{
String key,value;
Language language;
LanguageDropModel(this.key, this.value,this.language);
}

View File

@@ -0,0 +1,197 @@
import 'package:active_ecommerce_seller_app/custom/device_info.dart';
import 'package:active_ecommerce_seller_app/custom/localization.dart';
import 'package:active_ecommerce_seller_app/custom/route_transaction.dart';
import 'package:active_ecommerce_seller_app/helpers/shared_value_helper.dart';
import 'package:active_ecommerce_seller_app/my_theme.dart';
import 'package:active_ecommerce_seller_app/screens/chat_list.dart';
import 'package:active_ecommerce_seller_app/screens/coupon/coupons.dart';
import 'package:active_ecommerce_seller_app/screens/money_withdraw.dart';
import 'package:active_ecommerce_seller_app/screens/payment_history.dart';
import 'package:active_ecommerce_seller_app/screens/refund_request.dart';
import 'package:active_ecommerce_seller_app/screens/support_ticket.dart';
import 'package:flutter/material.dart';
class FeaturesList{
BuildContext context ;
FeaturesList(this.context);
List<Widget> getFeatureList() {
List<Widget> featureList = [];
featureList.add(Visibility(
visible: conversation_activation.$,
child: InkWell(
onTap: () {
MyTransaction(context: context).push(ChatList());
},
child: Container(
height:40,
child: Column(
children: [
Image.asset(
'assets/icon/chat.png',
width: 16,
height: 16,
color: MyTheme.white,
),
SizedBox(
height: 5,
),
Text(
LangText(context: context)
.getLocal()!
.messages_ucf,
style:
TextStyle(fontSize: 12, color: MyTheme.white,),
),
],
),
)),
));
featureList.add(Visibility(
visible: refund_addon.$,
child: InkWell(
onTap: () {
//MyTransaction(context: context).push(RefundRequest());
Navigator.push(context, MaterialPageRoute(builder:( context)=>RefundRequest()));
},
child: Container(
height:40,
child: Column(
children: [
Image.asset(
'assets/icon/refund.png',
width: 16,
height: 16,
color:MyTheme.white,
),
SizedBox(
height: 5,
),
Text(
LangText(context: context)
.getLocal()!
.refund_requests_ucf,
style:
TextStyle(fontSize: 12,color:MyTheme.white,),
),
],
),
)),
),);
/*featureList.add(InkWell(
onTap: () {
MyTransaction(context: context).push(SupportTicket());
},
child: Container(
width: DeviceInfo(context).getWidth() / 3.5,
height:40,
child: Column(
children: [
Image.asset(
'assets/icon/support_ticket.png',
width: 16,
height: 16,
),
SizedBox(
height: 5,
),
Text(
LangText(context: context)
.getLocal()
.dashboard_support_tickets,
style:
TextStyle(fontSize: 12, color: Colors.white),
),
],
),
)),);*/
featureList.add(Visibility(
visible: coupon_activation.$,
child: InkWell(
onTap: () {
MyTransaction(context: context).push(Coupons());
},
child: Container(
height:40,
child: Column(
children: [
Image.asset(
'assets/icon/coupon.png',
width: 16,
height: 16,color:MyTheme.white,
),
SizedBox(
height: 5,
),
Text(
LangText(context: context)
.getLocal()!
.coupons_ucf,
style:
TextStyle(fontSize: 12, color:MyTheme.white,),
),
],
),
)),
),);
featureList.add(InkWell(
onTap: () {
MyTransaction(context: context).push(MoneyWithdraw());
},
child: Container(
height:40,
child: Column(
children: [
Image.asset(
'assets/icon/withdraw.png',
width: 16,
height: 16,color:MyTheme.white,
),
SizedBox(
height: 5,
),
Text(
LangText(context: context)
.getLocal()!
.money_withdraw_ucf,
style:
TextStyle(fontSize: 12, color:MyTheme.white,),
),
],
),
)),);
featureList.add(InkWell(
onTap: () {
MyTransaction(context: context).push(PaymentHistory());
},
child: Container(
height:40,
child: Column(
children: [
Image.asset(
'assets/icon/payment_history.png',
width: 16,
height: 16,color:MyTheme.white,
),
SizedBox(
height: 5,
),
Text(
LangText(context: context)
.getLocal()!
.payment_history_ucf,
style:
TextStyle(fontSize: 12, color:MyTheme.white,),
),
],
),
)),);
return featureList;
}
}

View File

@@ -0,0 +1,22 @@
class CouponInformationOptions{
String? value,key;
CouponInformationOptions({this.value, this.key});
List<CouponInformationOptions> getList(){
List<CouponInformationOptions> list = [];
list.add(new CouponInformationOptions(value: "Select",key: ""));
list.add(new CouponInformationOptions(value: "For Product",key: "product_base"));
list.add(new CouponInformationOptions(value: "For Total Orders",key: "cart_base"));
return list;
}
}
class CouponDiscountOptions{
String? value,key;
CouponDiscountOptions({this.value, this.key});
List<CouponDiscountOptions> getList(){
List<CouponDiscountOptions> list = [];
list.add(new CouponDiscountOptions(value: "Amount",key: "amount"));
list.add(new CouponDiscountOptions(value: "Percentage",key: "percent"));
return list;
}
}

View File

@@ -0,0 +1,5 @@
class SalesData {
SalesData(this.year, this.sales);
final int year;
final int sales;
}