Skip to content

Commit e1c46c8

Browse files
committed
feat: Add onboarding screen.
1 parent 146ed32 commit e1c46c8

22 files changed

Lines changed: 356 additions & 23 deletions

assets/app/icons/arrow-forward.svg

Lines changed: 3 additions & 0 deletions
Loading
6.09 KB
Loading
7.69 KB
Loading
40.2 KB
Loading

assets/app/images/circle2.svg

Lines changed: 3 additions & 0 deletions
Loading

lib/data/constants/assets.dart

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
11
class AppAssets {
2+
// Roots
23
static const String _iconsRoot = 'assets/app/icons';
4+
static const String _imagesRoot = 'assets/app/images';
5+
static const String _illustrationsRoot = 'assets/app/illustrations';
36

7+
// Icons
8+
static const String arrowForward = '$_iconsRoot/arrow-forward.svg';
49
static const String eyeOn = '$_iconsRoot/eye-on.svg';
510
static const String eyeOff = '$_iconsRoot/eye-off.svg';
611
static const String lock = '$_iconsRoot/lock.svg';
712
static const String person = '$_iconsRoot/person.svg';
813

9-
static const String _imagesRoot = 'assets/app/images';
14+
// Images
15+
static const String circle1 = '$_imagesRoot/circle1.svg';
16+
static const String circle2 = '$_imagesRoot/circle2.svg';
17+
static const String triangle = '$_imagesRoot/triangle.svg';
1018

11-
static const String circle = '$_imagesRoot/circle.svg',
12-
triangle = '$_imagesRoot/triangle.svg';
19+
// Illustrations
20+
static const String contestCardIllustration =
21+
'$_illustrationsRoot/contest_card.png';
22+
static const String feedCardIllustration =
23+
'$_illustrationsRoot/feed_card.png';
24+
static const String profileIllustration = '$_illustrationsRoot/profile.png';
1325
}

lib/data/constants/colors.dart

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
import 'package:flutter/material.dart';
22

33
class AppColors {
4-
static const white = Colors.white,
5-
grey1 = Color(0xFF979797),
6-
grey2 = Color(0xFFC5CEE0),
7-
grey3 = Color(0xFF242424),
8-
transparent = Colors.transparent;
4+
static const Color white = Colors.white;
5+
static const Color grey1 = Color(0xFF979797);
6+
static const Color grey2 = Color(0xFFC5CEE0);
7+
static const Color grey3 = Color(0xFF242424);
8+
static const Color grey4 = Color(0xFF2C363F);
9+
static const Color grey5 = Color(0x3D000000);
10+
static const Color transparent = Colors.transparent;
911

10-
static const primary = Color(0xFF3366FF);
12+
static const Color primary = Color(0xFF3366FF);
13+
static const Color primaryAccent = Color(0x0D3366FF);
1114
}

lib/data/constants/routes.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
/// Constant strings representing the names of the routes for easy refactoring.
22
class AppRoutes {
3+
// Splash
34
static const String splash = '/';
5+
6+
// Pre-Auth
47
static const String login = '/login';
5-
static const String home = '/home';
68
static const String signUp = '/signup';
9+
static const String onboarding = '/onboarding';
10+
11+
// Post-Auth
12+
static const String home = '/home';
713
}

lib/data/constants/styles.dart

Lines changed: 38 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,42 @@ import 'colors.dart';
55

66
class AppStyles {
77
static final TextStyle h1 = TextStyle(
8-
color: AppColors.grey3,
9-
fontSize: 48.sp,
10-
fontWeight: FontWeight.w700,
11-
),
12-
h6 = TextStyle(
13-
color: AppColors.grey1,
14-
fontSize: 14.sp,
15-
fontWeight: FontWeight.w400,
16-
);
8+
color: AppColors.grey3,
9+
fontSize: 48.sp,
10+
fontWeight: FontWeight.w700,
11+
);
12+
static final TextStyle h2 = TextStyle(
13+
color: AppColors.white,
14+
fontSize: 24.sp,
15+
fontWeight: FontWeight.w900,
16+
);
17+
static final TextStyle h5 = TextStyle(
18+
color: AppColors.white.withOpacity(0.85),
19+
fontSize: 16.sp,
20+
fontWeight: FontWeight.w400,
21+
);
22+
static final TextStyle h6 = TextStyle(
23+
color: AppColors.grey1,
24+
fontSize: 14.sp,
25+
fontWeight: FontWeight.w400,
26+
);
27+
28+
static final ThemeData theme = ThemeData(
29+
colorScheme: ColorScheme.fromSeed(
30+
seedColor: AppColors.primary,
31+
primary: AppColors.primary,
32+
onPrimary: AppColors.white,
33+
background: AppColors.white,
34+
onBackground: AppColors.grey3,
35+
surface: AppColors.white,
36+
onSurface: AppColors.grey3,
37+
secondary: AppColors.primaryAccent,
38+
),
39+
textTheme: TextTheme(
40+
headline1: h1,
41+
headline2: h2,
42+
headline5: h5,
43+
headline6: h6,
44+
),
45+
);
1746
}

0 commit comments

Comments
 (0)