@@ -49,7 +49,7 @@ class _ActivateWalletWidgetState extends ConsumerState<ActivateWalletWidget> {
4949 logger.e ('Failed to load TFT price: $e ' );
5050 if (mounted) {
5151 setState (() {
52- tftPrice = 3 ;
52+ tftPrice = 0 ;
5353 isLoadingPrice = false ;
5454 });
5555 }
@@ -118,11 +118,16 @@ class _ActivateWalletWidgetState extends ConsumerState<ActivateWalletWidget> {
118118 ],
119119 ),
120120 );
121- await StellarService .transfer (
122- _selectedWallet! .stellarSecret,
123- Globals ().activationServiceAddress,
124- '3' ,
125- );
121+ try {
122+ await StellarService .transfer (
123+ _selectedWallet! .stellarSecret,
124+ Globals ().activationServiceAddress,
125+ (3 * tftPrice).toString (),
126+ );
127+ } catch (transferError) {
128+ logger.e ('Transfer error : $transferError ' );
129+ }
130+
126131 walletRef.reloadBalances ();
127132 widget.wallet.stellarBalance = '0' ;
128133 Navigator .pop (context);
@@ -147,7 +152,7 @@ class _ActivateWalletWidgetState extends ConsumerState<ActivateWalletWidget> {
147152 );
148153 }
149154 } catch (e) {
150- logger.e (e );
155+ logger.e ('Activation error: $ e ' );
151156 await showDialog (
152157 context: context,
153158 builder: (BuildContext context) => CustomDialog (
@@ -186,13 +191,18 @@ class _ActivateWalletWidgetState extends ConsumerState<ActivateWalletWidget> {
186191 child: Padding (
187192 padding: const EdgeInsets .fromLTRB (16 , 16 , 16 , 16 ),
188193 child: Column (
194+ crossAxisAlignment: CrossAxisAlignment .start,
189195 children: [
190- Text (
191- 'Activate Stellar' ,
192- style:
193- Theme .of (context).textTheme.headlineSmall! .copyWith (
194- color: Theme .of (context).colorScheme.onSurface,
195- ),
196+ Center (
197+ child: Text (
198+ 'Activate Stellar' ,
199+ style: Theme .of (context)
200+ .textTheme
201+ .headlineSmall!
202+ .copyWith (
203+ color: Theme .of (context).colorScheme.onSurface,
204+ ),
205+ ),
196206 ),
197207 const SizedBox (height: 20 ),
198208 Text (
0 commit comments