Commit a869be02 authored by Indika NK's avatar Indika NK

Adjusted some renderflex errors

parent 4df3ba21
...@@ -7,23 +7,27 @@ import 'package:flutter/material.dart'; ...@@ -7,23 +7,27 @@ import 'package:flutter/material.dart';
class I_guider extends StatelessWidget { class I_guider extends StatelessWidget {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final mesure = MediaQuery.of(context);
return Scaffold( return Scaffold(
backgroundColor: Colors.grey[200], backgroundColor: Colors.white,
appBar: AppBar( appBar: AppBar(
centerTitle: true,
title: Text('I-Guider'), title: Text('I-Guider'),
// elevation: 0, // elevation: 0,
), ),
body: Column( body: SingleChildScrollView(
child: Column(
children: [ children: [
Row( Row(
children: [ children: [
Expanded( Expanded(
child: Container( child: Container(
height: mesure.size.height/3,
decoration: BoxDecoration( decoration: BoxDecoration(
image: DecorationImage( image: DecorationImage(
image: AssetImage('lib/assets/images/hero.gif'), image: AssetImage('lib/assets/images/hero.gif'),
fit: BoxFit.cover)), fit: BoxFit.cover)),
height: 300,
), ),
), ),
], ],
...@@ -150,6 +154,7 @@ class I_guider extends StatelessWidget { ...@@ -150,6 +154,7 @@ class I_guider extends StatelessWidget {
), ),
], ],
), ),
),
); );
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment