Created
November 14, 2020 16:18
-
-
Save imaNNeo/dbb5c50e6317df68d455037e8bc13228 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:ui'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
title: 'Flutter 4 Fun', | |
home: HeroDetailsPage(), | |
); | |
} | |
} | |
class HeroDetailsPage extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
body: Container( | |
width: double.infinity, | |
height: double.infinity, | |
child: Stack( | |
children: [ | |
SafeArea( | |
child: Row( | |
crossAxisAlignment: CrossAxisAlignment.center, | |
children: [ | |
SizedBox( | |
width: 18, | |
), | |
IconButton( | |
icon: Icon( | |
Icons.arrow_back_ios, | |
color: Colors.white, | |
size: 20, | |
), | |
onPressed: () { | |
Navigator.of(context).pop(); | |
}, | |
), | |
Text( | |
'Overview', | |
style: TextStyle( | |
color: Colors.white, | |
fontSize: 20, | |
fontWeight: FontWeight.bold, | |
), | |
), | |
Expanded( | |
child: Container( | |
height: 80, | |
)), | |
Container( | |
width: 80, | |
height: 80, | |
child: Icon( | |
Icons.menu, | |
color: Colors.white, | |
), | |
) | |
], | |
), | |
), | |
// _HeroDetailsImage(hero.image), | |
], | |
), | |
decoration: BoxDecoration( | |
gradient: LinearGradient( | |
colors: [ | |
Color(0xFFF4E342), | |
Color(0xFFEE3474), | |
], | |
begin: Alignment(0.3, -1), | |
end: Alignment(-0.8, 1), | |
)), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment