78 lines
2.3 KiB
Dart
78 lines
2.3 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:reza_admin/app/themes/app_text.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<SplashScreenViewModel>.reactive(
|
|
viewModelBuilder: () => SplashScreenViewModel(),
|
|
onViewModelReady: (SplashScreenViewModel model) async {
|
|
await model.init();
|
|
},
|
|
builder: (
|
|
BuildContext context,
|
|
SplashScreenViewModel model,
|
|
Widget? child,
|
|
) {
|
|
return Scaffold(
|
|
body: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
const Expanded(
|
|
flex: 1,
|
|
child: SizedBox(
|
|
height: 20,
|
|
),
|
|
),
|
|
Expanded(
|
|
flex: 2,
|
|
child: Column(
|
|
children: [
|
|
Center(
|
|
child: Image.asset(
|
|
'assets/logo.png',
|
|
width: 200,
|
|
height: 200,
|
|
),
|
|
),
|
|
const Text(
|
|
'Reza Table Reservation \n& Food Order',
|
|
style: TextStyle(
|
|
fontSize: 24,
|
|
fontWeight: FontWeight.bold,
|
|
),
|
|
textAlign: TextAlign.center,
|
|
),
|
|
const SizedBox(height: 5),
|
|
Text(
|
|
'Admin App',
|
|
style: regularTextStyle.copyWith(
|
|
fontSize: 12,
|
|
fontStyle: FontStyle.italic,
|
|
),
|
|
textAlign: TextAlign.center,
|
|
),
|
|
],
|
|
),
|
|
),
|
|
const SizedBox(height: 20),
|
|
const Text(
|
|
'Alamat jalan jendral sudirman',
|
|
style: TextStyle(
|
|
fontSize: 16,
|
|
),
|
|
),
|
|
const SizedBox(height: 20),
|
|
],
|
|
),
|
|
);
|
|
},
|
|
);
|
|
}
|
|
}
|