import 'package:flutter/material.dart';
import 'package:grostore/configs/style_config.dart';
import 'package:grostore/configs/theme_config.dart';
import 'package:grostore/helpers/common_functions.dart';
import 'package:grostore/helpers/device_info_helper.dart';

class AuthScreen{
  static Widget buildScreen(BuildContext context,Widget child){
    return Scaffold(
      backgroundColor: Colors.white,
      body:Container(
        alignment: Alignment.center,
        height: getHeight(context),
        decoration: BoxDecoration(
          image: DecorationImage(image: AssetImage(getAssetImage("auth_background.png")))
        ),
        child: CustomScrollView(
          physics: const BouncingScrollPhysics(
              parent: AlwaysScrollableScrollPhysics()),
          slivers: [
            SliverList(
              delegate: SliverChildListDelegate(

                  [
                Padding(
                  padding: const EdgeInsets.only(top: 50.0),
                  child: Container(
                    padding: const EdgeInsets.symmetric(horizontal: 8,vertical: 12),
                    width: 150,
                    height: 150,
                    decoration: BoxDecoration(
                        color: ThemeConfig.white,
                        borderRadius: BorderRadius.circular(8)),
                    child: Image.asset(getAssetLogo("img_logo2.png")),
                  ),
                ),
                Container(
                  // alignment: Alignment.center,
                    padding:  EdgeInsets.symmetric(vertical: StyleConfig.padding),
                    child: child,),
              ],
              ),
            )
          ],
        ),
      ),
    );
  }

}


