Skip to content

Instantly share code, notes, and snippets.

@TheOnlyArtz
Created August 23, 2019 14:20
Show Gist options
  • Save TheOnlyArtz/c7f418072eaad83408306a9a7ea3b90b to your computer and use it in GitHub Desktop.
Save TheOnlyArtz/c7f418072eaad83408306a9a7ea3b90b to your computer and use it in GitHub Desktop.
@override
Widget build(BuildContext context) {
var width = MediaQuery.of(context).size.width;
var height = MediaQuery.of(context).size.height;
// return LayoutBuilder(
// builder: (context, constrainets) {
// print(constrainets.maxHeight);
// return Container();
// },
// );
return Scaffold(
// resizeToAvoidBottomInset: false,
// resizeToAvoidBottomPadding: false,
body: Stack(children: <Widget>[
Hero(
tag: "detail",
child: Container(
width: double.infinity,
height: double.infinity,
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
SizedBox(height: height * 0.12,),
_buildLocationTitle("Paris, France"),
SizedBox(height: height * 0.005),
_buildDateText("Monday 9:00 AM"),
SizedBox(height: height * 0.03,),
_buildWeatherHeader(),
SizedBox(height: height * 0.04),
_buildWeatherStats("Precipitaion", "0%"),
SizedBox(height: height * 0.024),
_buildWeatherStats("Humidity", "43%"),
SizedBox(height: height * 0.024),
_buildWeatherStats("Wind", "10 km/h"),
SizedBox(height: height * 0.06),
_buildWeeklySummaryHeader(),
SizedBox(height: height * 0.02),
Expanded(
child: _buildDailyWeatherList(),
),
SizedBox(height: height * 0.09,),
],)
)
)
)
],)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment