|
1 | 1 | import 'package:flutter/material.dart'; |
| 2 | +import 'package:font_awesome_flutter/font_awesome_flutter.dart'; |
2 | 3 |
|
3 | | -enum ServiceGroup { wallet, trade, bets, invest } |
| 4 | +enum ServiceGroup { wallet, trade, dca, invest } |
4 | 5 |
|
5 | 6 | extension ServiceGroupExtension on ServiceGroup { |
6 | 7 | static const labels = { |
7 | 8 | ServiceGroup.wallet: "Wallet", |
8 | 9 | ServiceGroup.trade: "Trading", |
9 | | - ServiceGroup.bets: "Bets", |
| 10 | + ServiceGroup.dca: "DCA", |
10 | 11 | ServiceGroup.invest: "Stacking" |
11 | 12 | }; |
12 | 13 | static const icons = { |
13 | 14 | ServiceGroup.wallet: Icons.wallet, |
14 | 15 | ServiceGroup.trade: Icons.query_stats, |
15 | | - ServiceGroup.bets: Icons.casino, |
| 16 | + ServiceGroup.dca: FontAwesomeIcons.moneyBill1, |
16 | 17 | ServiceGroup.invest: Icons.table_rows |
17 | 18 | }; |
18 | 19 |
|
19 | 20 | String get label => labels[this]!; |
20 | 21 | IconData get icon => icons[this]!; |
21 | 22 | } |
22 | 23 |
|
23 | | -enum Service { cfd, sportsbet, exchange, savings } |
| 24 | +enum Service { trade, dca, savings } |
24 | 25 |
|
25 | 26 | extension ServiceExtension on Service { |
26 | 27 | static const labels = { |
27 | | - Service.cfd: "CFD Trading", |
28 | | - Service.sportsbet: "Sports Bets", |
29 | | - Service.exchange: "Taro Exchange", |
| 28 | + Service.trade: "Trading", |
| 29 | + Service.dca: "Dollar Cost Average", |
30 | 30 | Service.savings: "Saving" |
31 | 31 | }; |
32 | 32 | static const shortLabels = { |
33 | | - Service.cfd: "CFDs", |
34 | | - Service.sportsbet: "Bets", |
35 | | - Service.exchange: "Exchange", |
| 33 | + Service.trade: "Trade", |
| 34 | + Service.dca: "DCA", |
36 | 35 | Service.savings: "Savings" |
37 | 36 | }; |
38 | 37 | static const icons = { |
39 | | - Service.cfd: Icons.insights, |
40 | | - Service.sportsbet: Icons.sports_football, |
41 | | - Service.exchange: Icons.currency_exchange, |
| 38 | + Service.trade: Icons.insights, |
| 39 | + Service.dca: FontAwesomeIcons.moneyBill1, |
42 | 40 | Service.savings: Icons.savings |
43 | 41 | }; |
44 | 42 | static const routes = { |
45 | | - Service.cfd: "/cfd-trading", |
46 | | - Service.sportsbet: "/sports-bet", |
47 | | - Service.exchange: "/exchange", |
| 43 | + Service.trade: "/trading", |
| 44 | + Service.dca: "/dca", |
48 | 45 | Service.savings: "/savings" |
49 | 46 | }; |
50 | 47 |
|
|
0 commit comments