fix padding

This commit is contained in:
zypherift 2024-04-28 16:29:31 +02:00
parent 3e20977195
commit 96b84e2ddd

View File

@ -123,11 +123,11 @@ class LoginScreenState extends State<LoginScreen> {
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
const SizedBox(height: 32), const SizedBox(height: 23),
CarouselSlider( CarouselSlider(
options: CarouselOptions( options: CarouselOptions(
height: MediaQuery.of(context).size.height, height: MediaQuery.of(context).size.height,
viewportFraction: 0.957, //math is mathing viewportFraction: 1,
autoPlay: true, autoPlay: true,
autoPlayInterval: const Duration(seconds: 4), autoPlayInterval: const Duration(seconds: 4),
pauseAutoPlayOnTouch: true), pauseAutoPlayOnTouch: true),
@ -140,8 +140,13 @@ class LoginScreenState extends State<LoginScreen> {
children: [ children: [
Padding( Padding(
padding: const EdgeInsets.only(left: 24), padding: const EdgeInsets.only(left: 24),
//TODO: fix padding child: Column(
child: Text( crossAxisAlignment:
CrossAxisAlignment.start,
mainAxisAlignment:
MainAxisAlignment.start,
children: [
Text(
"welcome_title_$i".i18n, "welcome_title_$i".i18n,
style: TextStyle( style: TextStyle(
color: AppColors.of(context) color: AppColors.of(context)
@ -151,14 +156,15 @@ class LoginScreenState extends State<LoginScreen> {
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
height: 1.3), height: 1.3),
), ),
), const SizedBox(height: 14.375), //meth
const SizedBox(height: 20),
Text("welcome_text_$i".i18n, Text("welcome_text_$i".i18n,
style: const TextStyle( style: const TextStyle(
fontFamily: 'FigTree', fontFamily: 'FigTree',
fontWeight: FontWeight.w500, fontWeight: FontWeight.w500,
fontSize: 18, fontSize: 18,
height: 1.3)), height: 1.3)),
],
)),
Image.asset('assets/images/showcase$i.png') Image.asset('assets/images/showcase$i.png')
], ],
); );