This repository was archived by the owner on Dec 19, 2021. It is now read-only.
File tree 10 files changed +12
-12
lines changed
10 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class RegisterScreen extends StatefulWidget {
15
15
RegisterBloc _registerBloc = RegisterBloc ();
16
16
17
17
class _RegisterScreenState extends State <RegisterScreen > {
18
- final GlobalKey <ScaffoldState > _scaffoldKey = new GlobalKey <ScaffoldState >();
18
+ final GlobalKey <ScaffoldState > _scaffoldKey = GlobalKey <ScaffoldState >();
19
19
20
20
@override
21
21
void initState () {
@@ -79,7 +79,7 @@ class _RegisterScreenState extends State<RegisterScreen> {
79
79
80
80
void createSnackBar (String message) {
81
81
_scaffoldKey.currentState
82
- .showSnackBar (new SnackBar (content: new Text (message)));
82
+ .showSnackBar (SnackBar (content: Text (message)));
83
83
}
84
84
}
85
85
Original file line number Diff line number Diff line change 1
1
import 'package:shopping_app/feature/cart/models/cart_item.dart' ;
2
2
3
3
class Cart {
4
- List <CartItem > listCartItem = new List <CartItem >();
4
+ List <CartItem > listCartItem = List <CartItem >();
5
5
6
6
Cart (this .listCartItem);
7
7
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class CartScreen extends StatefulWidget {
16
16
}
17
17
18
18
class _CartScreenState extends State <CartScreen > {
19
- final formatCurrency = new NumberFormat .simpleCurrency ();
19
+ final formatCurrency = NumberFormat .simpleCurrency ();
20
20
21
21
@override
22
22
void initState () {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class CheckoutScreen extends StatefulWidget {
12
12
}
13
13
14
14
class _CheckoutScreenState extends State <CheckoutScreen > {
15
- final formatCurrency = new NumberFormat .simpleCurrency ();
15
+ final formatCurrency = NumberFormat .simpleCurrency ();
16
16
17
17
CreditCard resultCreditCard = creditCards[0 ];
18
18
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ class DiscoverLoadFinished extends DiscoverState {
16
16
DiscoverLoadFinished ({this .products = const [], this .isSuccess = false });
17
17
18
18
@override
19
- List <Object > get props => [products, isSuccess];
19
+ List <Object > get props => [products.hashCode , isSuccess];
20
20
21
21
@override
22
22
String toString () {
@@ -30,7 +30,7 @@ class WishlistLoadFinished extends DiscoverState {
30
30
WishlistLoadFinished ({this .products = const [], this .isSuccess = false });
31
31
32
32
@override
33
- List <Object > get props => [products, isSuccess];
33
+ List <Object > get props => [products.hashCode , isSuccess];
34
34
35
35
@override
36
36
String toString () {
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class ProductCategoryScreen extends StatefulWidget {
19
19
}
20
20
21
21
class _ProductCategoryScreenState extends State <ProductCategoryScreen > {
22
- final formatCurrency = new NumberFormat .simpleCurrency ();
22
+ final formatCurrency = NumberFormat .simpleCurrency ();
23
23
24
24
@override
25
25
Widget build (BuildContext context) {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class ProductDetailsScreen extends StatefulWidget {
22
22
}
23
23
24
24
class _ProductDetailsScreenState extends State <ProductDetailsScreen > {
25
- final formatCurrency = new NumberFormat .simpleCurrency ();
25
+ final formatCurrency = NumberFormat .simpleCurrency ();
26
26
var _isSelectedSize = false ;
27
27
var _currentIndexSize = 0 ;
28
28
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class ShippingMethodScreen extends StatefulWidget {
11
11
}
12
12
13
13
class _ShippingMethodScreenState extends State <ShippingMethodScreen > {
14
- final formatCurrency = new NumberFormat .simpleCurrency ();
14
+ final formatCurrency = NumberFormat .simpleCurrency ();
15
15
var _isSelectedShipMethod = false ;
16
16
var _currentIndexShipMethod = 0 ;
17
17
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class Wishlist extends StatefulWidget {
18
18
class _WishlistState extends State <Wishlist > {
19
19
double width;
20
20
double height;
21
- final formatCurrency = new NumberFormat .simpleCurrency ();
21
+ final formatCurrency = NumberFormat .simpleCurrency ();
22
22
23
23
@override
24
24
void initState () {
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import 'package:flutter/material.dart';
4
4
import 'package:flutter/services.dart' ;
5
5
6
6
class AppLocalization {
7
- static final AppLocalization _singleton = new AppLocalization ._internal ();
7
+ static final AppLocalization _singleton = AppLocalization ._internal ();
8
8
9
9
AppLocalization ._internal ();
10
10
You can’t perform that action at this time.
0 commit comments