48 lines
1.4 KiB
Dart
48 lines
1.4 KiB
Dart
import 'package:flutter/cupertino.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:photobooth_mobile_app/modules/frame/select_frame_screen.dart';
|
|
|
|
class SplashScreen extends StatelessWidget {
|
|
const SplashScreen({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
body: SafeArea(
|
|
child: Container(
|
|
width: double.infinity,
|
|
padding: EdgeInsets.all(24),
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
FlutterLogo(size: 96),
|
|
SizedBox(height: 24),
|
|
Text(
|
|
'Photo Frame',
|
|
style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
|
|
),
|
|
SizedBox(height: 12),
|
|
Text(
|
|
'Pilih frame, ambil foto, cetak A5',
|
|
textAlign: TextAlign.center,
|
|
),
|
|
SizedBox(height: 36),
|
|
ElevatedButton(
|
|
onPressed: () => Navigator.of(context).push(
|
|
CupertinoPageRoute(
|
|
builder: (_) => const FrameSelectionScreen(),
|
|
),
|
|
),
|
|
child: Padding(
|
|
padding: EdgeInsets.symmetric(horizontal: 20, vertical: 12),
|
|
child: Text('Mulai', style: TextStyle(fontSize: 16)),
|
|
),
|
|
),
|
|
],
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|