Untitled
unknown
dart
2 years ago
3.1 kB
2
Indexable
import 'package:centro/app/modules/Common/onBoarding/controllers/on_boarding_controller.dart'; import 'package:centro/app/utilities/constants/app_colors.dart'; import 'package:flutter/material.dart'; import 'package:flutter_svg/flutter_svg.dart'; import 'package:get/get.dart'; class OnBoardingOne extends GetView<OnBoardingController> { const OnBoardingOne({super.key}); @override Widget build(BuildContext context) { Get.find<OnBoardingController>(); return Scaffold( backgroundColor: AppColors.backgroundColor, body: Stack( children: [ Container( decoration: const BoxDecoration( image: DecorationImage( image: AssetImage("assets/images/firstOnBoardingBG.jpg"), fit: BoxFit.fill, ), ), child: null /* add child content here */, ), Opacity( opacity: 0.85, child: SvgPicture.asset('assets/icons/ColouredBackground.svg', alignment: Alignment.center, fit: BoxFit.cover, width: double.infinity, height: double.infinity), ), Positioned( top: Get.height * 0.12, child: Container( margin: EdgeInsets.only(right: Get.width * 0.2), child: Column( children: [ SvgPicture.asset('assets/icons/logo.svg', alignment: Alignment.center, width: Get.width * 0.3, height: Get.height * 0.08), SizedBox( height: Get.height * 0.3, ), Padding( padding: const EdgeInsets.fromLTRB(15, 0, 27, 0), child: SizedBox( width: Get.width * 0.5, child: Text( 'welcome text'.tr, textAlign: TextAlign.center, style: Get.textTheme.headline3?.copyWith( color: Colors.white, fontWeight: FontWeight.bold), ), ), ), SizedBox( height: Get.height * 0.3, ), ], ), ), ), Positioned( bottom: 0, width: Get.width, child: SvgPicture.asset( 'assets/icons/Path 142196.svg', fit: BoxFit.fill, ), ), Align( alignment: Alignment.bottomLeft, child: Column( mainAxisAlignment: MainAxisAlignment.end, children: [ Opacity( opacity: 0.7, child: Image.asset( 'assets/images/SplashScreenCorner.png', ), ), ], ), ), ], ), ); } }
Editor is loading...