Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class _MyHomePageState extends State<MyHomePage> {
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- backgroundColor: Color(0xFF3e3963),
- body: SingleChildScrollView(
- child: Column(
- children: <Widget>[
- Container( // APPBAR
- decoration: BoxDecoration(
- gradient: LinearGradient(
- begin: Alignment.topRight,
- end: Alignment.bottomLeft,
- stops: [0.1, 0.3, 0.5, 0.7],
- colors: [
- Colors.blue[500],
- Colors.blue[600],
- Colors.blue[700],
- Colors.blue[800],
- ],
- ),
- ),
- child: Padding(
- padding: EdgeInsets.only(left: 15.0, right: 15.0, top: 40.0, bottom: 10.0),
- child: Row(
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
- children: <Widget> [
- IconButton(
- icon: Icon(
- Icons.menu,
- color: Colors.white,
- size: 30.0,
- ),
- onPressed: () {},
- ),
- Text(
- "Planets",
- style: TextStyle(
- color: Colors.white,
- fontFamily: "ProductSans",
- fontSize: 40.0,
- )
- ),
- IconButton(
- icon: Icon(
- Icons.search,
- color: Colors.white,
- size: 30.0,
- ),
- onPressed: () {},
- ),
- ],
- ),
- ),
- ),
- SizedBox(height: 50.0),
- Row(
- children: <Widget>[
- SizedBox(width: 90.0),
- /* Positioned(
- child: DecoratedBox(
- decoration: BoxDecoration(
- image: DecorationImage(
- image: AssetImage("img/earth.png")
- )
- ),
- ),
- ), */
- Container(
- decoration: BoxDecoration(
- color: Color(0xFF434273),
- borderRadius: BorderRadius.circular(15.0),
- boxShadow: [
- BoxShadow(
- color: Colors.black26,
- blurRadius: 20.0,
- offset: Offset(20.0, 10.0)
- )
- ],
- ),
- child: SizedBox(
- width: 300.0,
- height: 150.0,
- child: Row(
- mainAxisAlignment: MainAxisAlignment.start,
- children: <Widget> [
- SizedBox(width: 130.0),
- Column(
- mainAxisAlignment: MainAxisAlignment.center,
- children: <Widget> [
- SizedBox(
- width: 160.0,
- child: Text(
- "Earth",
- style: TextStyle(
- fontFamily: "ProductSans",
- fontSize: 40.0,
- color: Colors.white,
- fontWeight: FontWeight.bold,
- ),
- textAlign: TextAlign.start
- )
- ),
- SizedBox(
- width: 160.0,
- child: Text(
- "Milkyway Galaxy",
- style: TextStyle(
- fontFamily: "ProductSans",
- fontSize: 15.0,
- color: Colors.white,
- ),
- textAlign: TextAlign.start
- ),
- )
- ]
- ),
- //SizedBox(height: 30.0)
- ]
- )
- )
- )
- ],
- )
- ],
- )
- )
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement