Untitled

mail@pastecode.io avatar
unknown
dart
2 years ago
4.0 kB
4
Indexable
Never
 Scaffold(
      backgroundColor: Theme.of(context).scaffoldBackgroundColor,
      extendBodyBehindAppBar: true,
      body: Stack(
        clipBehavior: Clip.none,
        children: [
          Image.asset('assets/images/login_logo.png'),
          Positioned(
            top: 0.12.sh,
            bottom: 0.3.sh,
            right: 0.19.sw,
            left: 0.19.sw,
            child: Image.asset(
              Images.logo,
              fit: BoxFit.contain,
            ),
          ),
          Positioned(
            top: height * 0.63,
            height: height * 0.36,
            width: width,
            child: Padding(
              padding: EdgeInsets.only(left: 25.w, right: 25.w, top: 0),
              child: Column(
                mainAxisAlignment: MainAxisAlignment.spaceAround,
                children: [
                  Text(
                    'تفوقك في دراستك أصبح سهلاً !',
                    style: Theme.of(context).textTheme.headline4?.copyWith(
                          color: Colors.black,
                          fontSize: 36,
                          height: 1.4,
                          fontWeight: FontWeight.w800,
                        ),
                    textDirection: TextDirection.rtl,
                    textAlign: TextAlign.center,
                  ),
                  Text(
                    'ابحث عن الدورة التدريبية التي كنت تحلم بها هنا عبر التطبيق وكن على اتصال مباشر مع المدرس!',
                    style: Theme.of(context).textTheme.headline1,
                    textAlign: TextAlign.center,
                    textDirection: TextDirection.rtl,
                  ),
                  SizedBox(
                    height: 30.h,
                  ),
                  Row(
                    children: [
                      Expanded(
                        child: DefaultButton(
                          height: 50,
                          onTap: () {
                            Navigator.push(
                              context,
                              MaterialPageRoute(
                                builder: (BuildContext context) =>
                                    const SignUpScreen(),
                              ),
                            );
                          },
                          title: 'البدء',
                        ),
                      ),
                      SizedBox(
                        width: 10.w,
                      ),
                      CircleAvatar(
                        radius: 25,
                        backgroundColor: AppColors.primaryOrangeColor,
                        child: Image.asset(
                          Images.playIcon,
                          height: 25,
                          color: Colors.white,
                        ),
                      ),
                    ],
                  ),
                  SizedBox(
                    height: 10.h,
                  ),
                  GestureDetector(
                    onTap: () {
                      Navigator.push(
                        context,
                        MaterialPageRoute(
                          builder: (BuildContext context) => SignUpScreen(),
                        ),
                      );
                    },
                    child: Text(
                      'التسجيل كمدرس',
                      style: Theme.of(context).textTheme.headline2?.copyWith(
                            color: Colors.black,
                            fontWeight: FontWeight.w800,
                            fontSize: 16.sp,
                          ),
                    ),
                  )
                ],
              ),
            ),
          ),
        ],
      ),
    );