update
BIN
assets/images/onboarding/logos_line-dark.png
Normal file
After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
BIN
assets/images/onboarding/onboarding1-dark.png
Normal file
After Width: | Height: | Size: 23 KiB |
BIN
assets/images/onboarding/onboarding1-light.png
Normal file
After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 13 KiB |
BIN
assets/images/onboarding/onboarding2-dark.png
Normal file
After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
@ -61,14 +61,14 @@ final linkStyle = defaultTextStyle.copyWith(color: BrandColors.blue);
|
||||||
|
|
||||||
final progressTextStyleLight = GoogleFonts.inter(
|
final progressTextStyleLight = GoogleFonts.inter(
|
||||||
textStyle: TextStyle(
|
textStyle: TextStyle(
|
||||||
fontSize: 13,
|
fontSize: 11,
|
||||||
color: BrandColors.textColor1,
|
color: BrandColors.textColor1,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
final progressTextStyleDark = GoogleFonts.inter(
|
final progressTextStyleDark = GoogleFonts.inter(
|
||||||
textStyle: TextStyle(
|
textStyle: TextStyle(
|
||||||
fontSize: 13,
|
fontSize: 11,
|
||||||
color: BrandColors.white,
|
color: BrandColors.white,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
|
@ -46,14 +46,12 @@ class _ProgressBarState extends State<ProgressBar> {
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
// even.add(SizedBox(
|
|
||||||
// width: 0,
|
|
||||||
// ));
|
|
||||||
odd
|
odd
|
||||||
..insert(
|
..insert(
|
||||||
0,
|
0,
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 40,
|
width: 20,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
..add(
|
..add(
|
||||||
|
@ -68,7 +66,7 @@ class _ProgressBarState extends State<ProgressBar> {
|
||||||
BrandText.h2('Progress'),
|
BrandText.h2('Progress'),
|
||||||
SizedBox(height: 10),
|
SizedBox(height: 10),
|
||||||
Row(children: even),
|
Row(children: even),
|
||||||
SizedBox(height: 3),
|
SizedBox(height: 7),
|
||||||
Container(
|
Container(
|
||||||
alignment: Alignment.centerLeft,
|
alignment: Alignment.centerLeft,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
|
@ -95,7 +93,7 @@ class _ProgressBarState extends State<ProgressBar> {
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(height: 3),
|
SizedBox(height: 5),
|
||||||
Row(
|
Row(
|
||||||
children: odd,
|
children: odd,
|
||||||
),
|
),
|
||||||
|
@ -122,8 +120,8 @@ class _ProgressBarState extends State<ProgressBar> {
|
||||||
checked
|
checked
|
||||||
? WidgetSpan(
|
? WidgetSpan(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.only(bottom: 1, right: 2),
|
padding: const EdgeInsets.only(bottom: 0, right: 2),
|
||||||
child: Icon(BrandIcons.check, size: 14),
|
child: Icon(BrandIcons.check, size: 11),
|
||||||
))
|
))
|
||||||
: TextSpan(text: '${index + 1}.', style: style),
|
: TextSpan(text: '${index + 1}.', style: style),
|
||||||
TextSpan(text: step, style: style)
|
TextSpan(text: step, style: style)
|
||||||
|
|
|
@ -60,7 +60,9 @@ class InitializingPage extends StatelessWidget {
|
||||||
'Domain',
|
'Domain',
|
||||||
'User',
|
'User',
|
||||||
'Server',
|
'Server',
|
||||||
'Check'
|
'Check1',
|
||||||
|
'Check2',
|
||||||
|
'Check3'
|
||||||
],
|
],
|
||||||
activeIndex: cubit.state.progress,
|
activeIndex: cubit.state.progress,
|
||||||
),
|
),
|
||||||
|
|
|
@ -61,7 +61,12 @@ class _OnboardingPageState extends State<OnboardingPage> {
|
||||||
Flexible(
|
Flexible(
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Image.asset(
|
child: Image.asset(
|
||||||
'assets/images/onboarding/onboarding1.png',
|
_fileName(
|
||||||
|
context: context,
|
||||||
|
path: 'assets/images/onboarding',
|
||||||
|
fileExtention: 'png',
|
||||||
|
fileName: 'onboarding1',
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -96,13 +101,23 @@ class _OnboardingPageState extends State<OnboardingPage> {
|
||||||
SizedBox(height: 20),
|
SizedBox(height: 20),
|
||||||
Center(
|
Center(
|
||||||
child: Image.asset(
|
child: Image.asset(
|
||||||
'assets/images/onboarding/logos_line.png',
|
_fileName(
|
||||||
|
context: context,
|
||||||
|
path: 'assets/images/onboarding',
|
||||||
|
fileExtention: 'png',
|
||||||
|
fileName: 'logos_line',
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Flexible(
|
Flexible(
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Image.asset(
|
child: Image.asset(
|
||||||
'assets/images/onboarding/onboarding2.png',
|
_fileName(
|
||||||
|
context: context,
|
||||||
|
path: 'assets/images/onboarding',
|
||||||
|
fileExtention: 'png',
|
||||||
|
fileName: 'onboarding2',
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -120,3 +135,14 @@ class _OnboardingPageState extends State<OnboardingPage> {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String _fileName({
|
||||||
|
@required BuildContext context,
|
||||||
|
@required String path,
|
||||||
|
@required String fileName,
|
||||||
|
@required String fileExtention,
|
||||||
|
}) {
|
||||||
|
var theme = Theme.of(context);
|
||||||
|
var isDark = theme.brightness == Brightness.dark;
|
||||||
|
return '$path/$fileName${isDark ? '-dark' : '-light'}.$fileExtention';
|
||||||
|
}
|
||||||
|
|