Full quiz flow s01-s20: splash, intro, value prop, social proof, name/skin-type/age/concerns/goal quiz with insights, analysing loader, result with skin score, AM/PM routines, ingredient science, signup, welcome. Duolingo-style design: flat cards, pressable SButton (Stack trick), 4px progress bar, mascot moods (wave/think/analyze/celebrate), confetti on result+welcome, personalized content throughout.
28 lines
725 B
Dart
28 lines
725 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter/services.dart';
|
|
import 'theme.dart';
|
|
import 'screens/onboarding/s01_splash.dart';
|
|
|
|
void main() {
|
|
WidgetsFlutterBinding.ensureInitialized();
|
|
SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
|
|
SystemChrome.setSystemUIOverlayStyle(
|
|
const SystemUiOverlayStyle(statusBarBrightness: Brightness.dark),
|
|
);
|
|
runApp(const ShayneeApp());
|
|
}
|
|
|
|
class ShayneeApp extends StatelessWidget {
|
|
const ShayneeApp({super.key});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return MaterialApp(
|
|
title: 'Shaynee',
|
|
debugShowCheckedModeBanner: false,
|
|
theme: buildTheme(),
|
|
home: const SplashScreen(), // s01
|
|
);
|
|
}
|
|
}
|