modify ui
This commit is contained in:
@@ -4,6 +4,7 @@ import 'dart:io';
|
||||
import 'package:cloud_firestore/cloud_firestore.dart';
|
||||
import 'package:device_info/device_info.dart';
|
||||
import 'package:dio/dio.dart';
|
||||
import 'package:fcs/vo/payment_method.dart';
|
||||
import 'package:firebase_auth/firebase_auth.dart';
|
||||
import 'package:firebase_messaging/firebase_messaging.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
@@ -81,6 +82,30 @@ class MainModel extends ChangeNotifier {
|
||||
_loadFcs();
|
||||
}
|
||||
|
||||
List<PaymentMethod> get paymentMethods {
|
||||
List<PaymentMethod> methods = [
|
||||
PaymentMethod(
|
||||
name: 'AYA Bank',
|
||||
accountName: 'AYA Co,Ltd',
|
||||
account: '100 23404320548398',
|
||||
phone: '+959123456789',
|
||||
mail: 'aya@gmail.com'),
|
||||
PaymentMethod(
|
||||
name: 'KBZ Bank',
|
||||
accountName: 'KBZ Co,Ltd',
|
||||
account: '100 23404320548398',
|
||||
phone: '+959123456789',
|
||||
mail: 'kbz@gmail.com'),
|
||||
PaymentMethod(
|
||||
name: 'PayPal',
|
||||
accountName: 'PayPal Co,Ltd',
|
||||
account: '100 23404320548398',
|
||||
phone: '+959123456789',
|
||||
mail: 'paypal@gmail.com'),
|
||||
];
|
||||
return methods;
|
||||
}
|
||||
|
||||
_loadFcs() async {
|
||||
user = await SharedPref.getUser();
|
||||
notifyListeners();
|
||||
|
||||
Reference in New Issue
Block a user