Initial commit
This commit is contained in:
28
app_code/lib/custom_classes/product_variation_data.dart
Normal file
28
app_code/lib/custom_classes/product_variation_data.dart
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
|
||||
|
||||
class ProductVariationData{
|
||||
String name;
|
||||
int id;
|
||||
List<ProductVariationValue> values;
|
||||
ProductVariationData({
|
||||
required this.id,
|
||||
required this.name,
|
||||
required this.values,
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
class ProductVariationValue {
|
||||
var id;
|
||||
String name;
|
||||
var code;
|
||||
bool isChosen;
|
||||
|
||||
ProductVariationValue({
|
||||
required this.id,
|
||||
required this.isChosen,
|
||||
required this.name,
|
||||
this.code,
|
||||
});
|
||||
}
|
||||
12
app_code/lib/custom_classes/system_data.dart
Normal file
12
app_code/lib/custom_classes/system_data.dart
Normal file
@@ -0,0 +1,12 @@
|
||||
import 'package:grostore/models/common/user_info.dart';
|
||||
import 'package:grostore/models/currency_response.dart';
|
||||
import 'package:grostore/models/setting_response.dart';
|
||||
|
||||
class SystemData {
|
||||
// static CurrencyInfo? systemCurrency;
|
||||
static SettingResponse? settings;
|
||||
static bool isLogIn = false;
|
||||
static UserInfo userInfo =
|
||||
UserInfo(name: "", phone: "", balance: "", avatar: "");
|
||||
static String couponCode = "";
|
||||
}
|
||||
Reference in New Issue
Block a user