void main() => runApp(MaterialApp(
debugShowCheckedModeBanner: false,
home: HomePage(),
));
class HomePage extends StatelessWidget {
const HomePage({Key key}) : super(key: key);
@override Widget build(BuildContext context) {
return Scaffold(
body: Container(
padding: EdgeInsets.symmetric(vertical: 30),
width: double.infinity,
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topCenter,
colors: [
Colors.orange[900],
Colors.orange[800],
Colors.orange[400]
],
),
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
SizedBox(
height: 80,
),
Padding(
padding: EdgeInsets.all(20),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text('Login',style: TextStyle(color: Colors.white, fontSize: 40),),
SizedBox(height: 10,),
Text('Welkome Back',style: TextStyle(color: Colors.white, fontSize: 18),),
],
),
),
Expanded(
child: Container(
color: Colors.white,),
)
],
),
),
);
}
}