@@ -79,44 +79,46 @@ class WalletSheetCard extends ConsumerWidget {
7979 const SizedBox (
8080 width: 12 ,
8181 ),
82- Column (
83- mainAxisAlignment: MainAxisAlignment .spaceBetween,
84- crossAxisAlignment: CrossAxisAlignment .start,
85- children: [
86- Text (
87- manager.walletName,
88- style: STextStyles .titleBold12,
89- ),
90- const SizedBox (
91- height: 2 ,
92- ),
93- FutureBuilder (
94- future: manager.totalBalance,
95- builder: (builderContext, AsyncSnapshot <Decimal > snapshot) {
96- if (snapshot.connectionState == ConnectionState .done &&
97- snapshot.hasData) {
98- return Text (
99- "${Format .localizedStringAsFixed (
100- value : snapshot .data !,
101- locale : locale ,
102- decimalPlaces : 8 ,
103- )} ${coin .ticker }" ,
104- style: STextStyles .itemSubtitle,
105- );
106- } else {
107- return AnimatedText (
108- stringsToLoopThrough: const [
109- "Loading balance" ,
110- "Loading balance." ,
111- "Loading balance.." ,
112- "Loading balance..."
113- ],
114- style: STextStyles .itemSubtitle,
115- );
116- }
117- },
118- ),
119- ],
82+ Expanded (
83+ child: Column (
84+ mainAxisAlignment: MainAxisAlignment .spaceBetween,
85+ crossAxisAlignment: CrossAxisAlignment .start,
86+ children: [
87+ Text (
88+ manager.walletName,
89+ style: STextStyles .titleBold12,
90+ ),
91+ const SizedBox (
92+ height: 2 ,
93+ ),
94+ FutureBuilder (
95+ future: manager.totalBalance,
96+ builder: (builderContext, AsyncSnapshot <Decimal > snapshot) {
97+ if (snapshot.connectionState == ConnectionState .done &&
98+ snapshot.hasData) {
99+ return Text (
100+ "${Format .localizedStringAsFixed (
101+ value : snapshot .data !,
102+ locale : locale ,
103+ decimalPlaces : 8 ,
104+ )} ${coin .ticker }" ,
105+ style: STextStyles .itemSubtitle,
106+ );
107+ } else {
108+ return AnimatedText (
109+ stringsToLoopThrough: const [
110+ "Loading balance" ,
111+ "Loading balance." ,
112+ "Loading balance.." ,
113+ "Loading balance..."
114+ ],
115+ style: STextStyles .itemSubtitle,
116+ );
117+ }
118+ },
119+ ),
120+ ],
121+ ),
120122 ),
121123 ],
122124 ),
0 commit comments