content: import 'package:flutter/material.dart';
  
  class LoginScreen2 extends StatelessWidget {
    final Color? backgroundColor1;
    final Color? backgroundColor2;
    final Color? highlightColor;
    final Color? foregroundColor;
    final AssetImage? logo;
  
    LoginScreen2({
      Key? k,
      this.backgroundColor1 = const Color(0xFF444152),
      this.backgroundColor2 = const Color(0xFF6f6c7d),
      this.highlightColor = const Color(0xfff65aa3),
      this.foregroundColor = Colors.white,
      this.logo = const AssetImage("assets/images/full-bloom.png"),
    });
  
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        body: SingleChildScrollView(
          child: Container(
            decoration: new BoxDecoration(
              gradient: new LinearGradient(
                begin: Alignment.centerLeft,
                end: new Alignment(1.0, 0.0), // 10% of the width, so there are ten blinds.
                colors: [this.backgroundColor1!, this.backgroundColor2!], // whitish to gray
                tileMode: TileMode.repeated, // repeats the gradient over the canvas
              ),
            ),
            height: MediaQuery.of(context).size.height,
            child: Column(
              children: <Widget>[
                Container(
                  padding: const EdgeInsets.only(top: 110.0, bottom: 50.0),
                  child: Center(
                    child: new Column(
                      children: <Widget>[
                        Container(
                          height: 128.0,
                          width: 128.0,
                          child: new CircleAvatar(
                            backgroundColor: Colors.transparent,
                            foregroundColor: this.foregroundColor,
                            radius: 100.0,
                            child: new Text(
                              "S",
                              style: TextStyle(
                                fontSize: 50.0,
                                fontWeight: FontWeight.w100,
                              ),
                            ),
                          ),
                          decoration: BoxDecoration(
                            border: Border.all(
                              color: this.foregroundColor!,
                              width: 1.0,
                            ),
                            shape: BoxShape.circle,
                            //image: DecorationImage(image: this.logo)
                          ),
                        ),
                        new Padding(
                          padding: const EdgeInsets.all(16.0),
                          child: new Text(
                            "Samarth Agarwal",
                            style: TextStyle(color: this.foregroundColor),
                          ),
                        )
                      ],
                    ),
                  ),
                ),
                new Container(
                  width: MediaQuery.of(context).size.width,
                  margin: const EdgeInsets.only(left: 40.0, right: 40.0),
                  alignment: Alignment.center,
                  decoration: BoxDecoration(
                    border: Border(
                      bottom: BorderSide(color: this.foregroundColor!, width: 0.5, style: BorderStyle.solid),
                    ),
                  ),
                  padding: const EdgeInsets.only(left: 0.0, right: 10.0),
                  child: new Row(
                    crossAxisAlignment: CrossAxisAlignment.center,
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: <Widget>[
                      new Padding(
                        padding: EdgeInsets.only(top: 10.0, bottom: 10.0, right: 00.0),
                        child: Icon(
                          Icons.alternate_email,
                          color: this.foregroundColor,
                        ),
                      ),
                      new Expanded(
                        child: TextField(
                          textAlign: TextAlign.center,
                          decoration: InputDecoration(
                            border: InputBorder.none,
                            hintText: 'samarthagarwal@live.com',
                            hintStyle: TextStyle(color: this.foregroundColor),
                          ),
                        ),
                      ),
                    ],
                  ),
                ),
                new Container(
                  width: MediaQuery.of(context).size.width,
                  margin: const EdgeInsets.only(left: 40.0, right: 40.0, top: 10.0),
                  alignment: Alignment.center,
                  decoration: BoxDecoration(
                    border: Border(
                      bottom: BorderSide(color: this.foregroundColor!, width: 0.5, style: BorderStyle.solid),
                    ),
                  ),
                  padding: const EdgeInsets.only(left: 0.0, right: 10.0),
                  child: new Row(
                    crossAxisAlignment: CrossAxisAlignment.center,
                    mainAxisAlignment: MainAxisAlignment.spaceBetween,
                    children: <Widget>[
                      new Padding(
                        padding: EdgeInsets.only(top: 10.0, bottom: 10.0, right: 00.0),
                        child: Icon(
                          Icons.lock_open,
                          color: this.foregroundColor,
                        ),
                      ),
                      new Expanded(
                        child: TextField(
                          obscureText: true,
                          textAlign: TextAlign.center,
                          decoration: InputDecoration(
                            border: InputBorder.none,
                            hintText: '*********',
                            hintStyle: TextStyle(color: this.foregroundColor),
                          ),
                        ),
                      ),
                    ],
                  ),
                ),
                new Container(
                  width: MediaQuery.of(context).size.width,
                  margin: const EdgeInsets.only(left: 40.0, right: 40.0, top: 30.0),
                  alignment: Alignment.center,
                  child: new Row(
                    children: <Widget>[
                      new Expanded(
                        child: new FlatButton(
                          padding: const EdgeInsets.symmetric(vertical: 20.0, horizontal: 20.0),
                          color: this.highlightColor,
                          onPressed: () => {},
                          child: Text(
                            "Log In",
                            style: TextStyle(color: this.foregroundColor),
                          ),
                        ),
                      ),
                    ],
                  ),
                ),
                new Container(
                  width: MediaQuery.of(context).size.width,
                  margin: const EdgeInsets.only(left: 40.0, right: 40.0, top: 10.0),
                  alignment: Alignment.center,
                  child: new Row(
                    children: <Widget>[
                      new Expanded(
                        child: new FlatButton(
                          padding: const EdgeInsets.symmetric(vertical: 20.0, horizontal: 20.0),
                          color: Colors.transparent,
                          onPressed: () => {},
                          child: Text(
                            "Forgot your password?",
                            style: TextStyle(color: this.foregroundColor!.withOpacity(0.5)),
                          ),
                        ),
                      ),
                    ],
                  ),
                ),
                new Expanded(
                  child: Divider(),
                ),
                new Container(
                  width: MediaQuery.of(context).size.width,
                  margin: const EdgeInsets.only(left: 40.0, right: 40.0, top: 10.0, bottom: 20.0),
                  alignment: Alignment.center,
                  child: new Row(
                    children: <Widget>[
                      new Expanded(
                        child: new FlatButton(
                          padding: const EdgeInsets.symmetric(vertical: 20.0, horizontal: 20.0),
                          color: Colors.transparent,
                          onPressed: () => {},
                          child: Text(
                            "Don't have an account? Create One",
                            style: TextStyle(color: this.foregroundColor!.withOpacity(0.5)),
                          ),
                        ),
                      ),
                    ],
                  ),
                ),
              ],
            ),
          ),
        ),
      );
    }
  }
  