File tree Expand file tree Collapse file tree 1 file changed +13
-14
lines changed
packages/smooth_app/lib/pages/prices Expand file tree Collapse file tree 1 file changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,10 @@ class PricesHeader extends StatelessWidget {
4646 child: Row (
4747 spacing: SMALL_SPACE ,
4848 children: < Widget > [
49- Expanded (child: _PricesPageCounter (count: pricesResult? .total)),
49+ if (pricesResult? .total != null )
50+ Expanded (
51+ child: _PricesPageCounter (count: pricesResult! .total! ),
52+ ),
5053 Expanded (
5154 child: _PricesHeaderAddPriceButton (onTap: model.addButton),
5255 ),
@@ -62,7 +65,7 @@ class PricesHeader extends StatelessWidget {
6265class _PricesPageCounter extends StatelessWidget {
6366 const _PricesPageCounter ({required this .count});
6467
65- final int ? count;
68+ final int count;
6669
6770 @override
6871 Widget build (BuildContext context) {
@@ -101,18 +104,14 @@ class _PricesPageCounter extends StatelessWidget {
101104 horizontal: LARGE_SPACE ,
102105 vertical: 2.0 ,
103106 ),
104- child: count != null
105- ? Text (
106- count? .toString () ?? '-' ,
107- style: TextStyle (
108- fontWeight: FontWeight .w700,
109- fontSize: 25.0 ,
110- color: lightTheme
111- ? Colors .white
112- : extension .primaryBlack,
113- ),
114- )
115- : const CircularProgressIndicator .adaptive (),
107+ child: Text (
108+ count.toString (),
109+ style: TextStyle (
110+ fontWeight: FontWeight .w700,
111+ fontSize: 25.0 ,
112+ color: lightTheme ? Colors .white : extension .primaryBlack,
113+ ),
114+ ),
116115 ),
117116 ),
118117 Text (
You can’t perform that action at this time.
0 commit comments