mirrored_repositories/Online-RC-Drone-Kits-Shop/lib/screens/login_success
import 'package:flutter/material.dart';
import 'package:shop_app/components/default_button.dart';
import 'package:shop_app/screens/home/home_screen.dart';
import 'package:shop_app/size_config.dart';

class Body extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Column(
      children: [
        SizedBox(height: SizeConfig.screenHeight * 0.04),
        Image.asset(
          "assets/images/successDone.png",
          height: SizeConfig.screenHeight * 0.4, //40%
        ),
        SizedBox(height: SizeConfig.screenHeight * 0.08),
        Text(
          "Login Success",
          style: TextStyle(
            fontSize: getProportionateScreenWidth(30),
            fontWeight: FontWeight.bold,
            color: Color(0XFFff4757),
          ),
        ),
        Spacer(),
        Center(
          child: SizedBox(
            width: SizeConfig.screenWidth * 0.8,
            child: DefaultButton(
              text: "Start Shopping",
              press: () {
                Navigator.pushNamed(context, HomeScreen.routeName);
              },
            ),
          ),
        ),
        Spacer(),
      ],
    );
  }
}
