Untitled

mail@pastecode.io avatar
unknown
dart
a year ago
2.1 kB
1
Indexable
Never
import 'package:centro/app/modules/Common/Splash/controllers/splash_controller.dart';
import 'package:centro/app/utilities/constants/app_colors.dart';
import 'package:centro/app/utilities/ui/widgets/background.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:get/get.dart';

class SplashView extends GetView<SplashController> {
  const SplashView({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Background(
      safeAreaBottom: true,
      child: Scaffold(
          key: controller.scaffoldKey,
          backgroundColor: AppColors.backgroundColor,
          body: Stack(
            children: <Widget>[
              Center(
                  child: SvgPicture.asset(
                'assets/icons/MinistryLogo.svg',
                width: Get.width * 0.2,
                height: Get.width * 0.2,
                color: AppColors.primary,
              )),
              Align(
                alignment: Alignment.bottomCenter,
                child: Container(
                  margin: const EdgeInsets.only(bottom: 45.0),
                  child: Column(
                    mainAxisAlignment: MainAxisAlignment.end,
                    crossAxisAlignment: CrossAxisAlignment.center,
                    children: <Widget>[
                      Text(
                        'By',
                        style: Get.textTheme.headline6!
                            .copyWith(fontWeight: FontWeight.w100, color: AppColors.grey),
                      ),
                      const SizedBox(
                        height: 5.0,
                      ),
                      Text(
                        'Roya Tech',
                        style: Get.textTheme.headline6!
                            .copyWith(color: AppColors.primary, fontWeight: FontWeight.bold),
                      ),
                    ],
                  ),
                ),
              ),
            ],
          )),
    );
  }
}