import 'package:curreny_exchange/app/themes/app_text.dart'; import 'package:flutter/material.dart'; import 'package:stacked/stacked.dart'; import './splash_screen_view_model.dart'; class SplashScreenView extends StatelessWidget { const SplashScreenView({super.key}); @override Widget build(BuildContext context) { return ViewModelBuilder.reactive( viewModelBuilder: () => SplashScreenViewModel(), onViewModelReady: (SplashScreenViewModel model) async { await model.init(); }, builder: ( BuildContext context, SplashScreenViewModel model, Widget? child, ) { return WillPopScope( onWillPop: () async { return false; }, child: Scaffold( body: Column( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center, children: [ const Expanded(child: SizedBox(height: 20)), Center( child: Image.asset( 'assets/exchange.png', width: 200, height: 200, ), ), const SizedBox(height: 20), Text( "Aplikasi\nTukaran Mata Wang", style: italicTextStyle.copyWith( fontSize: 20, fontWeight: FontWeight.bold, ), textAlign: TextAlign.center, ), const Expanded(child: SizedBox(height: 20)), Text( "Created by : Marlina & Andi Wafiah", style: regularTextStyle.copyWith(fontSize: 12), textAlign: TextAlign.center, ), const SizedBox(height: 20), ], ), ), ); }, ); } }