This file contains 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 'package:flutter/material.dart'; | |
void main() { | |
runApp(HomePage()); | |
} | |
class HomePage extends StatefulWidget { | |
@override |
This file contains 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
Container( | |
padding: EdgeInsets.only(top: 10.0, bottom: 10.0), | |
width: size.width / 1.1, | |
child: Row( | |
children: <Widget>[ | |
Expanded( | |
child: Text( | |
'Ratings', | |
style: TextStyle(color: Colors.white), |
This file contains 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
Padding( | |
padding: const EdgeInsets.only(top: 20.0, bottom: 10.0), | |
child: Container( | |
height: size.height / 8, | |
width: size.width / 1.1, | |
decoration: BoxDecoration( | |
color: Color(0xFF212129), | |
borderRadius: BorderRadius.all(Radius.circular(20.0))), | |
child: Row( | |
children: <Widget>[ |
This file contains 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
Container( | |
height: size.height / 8, | |
width: size.width / 1.1, | |
decoration: BoxDecoration( | |
color: Color(0xFF212129), | |
borderRadius: BorderRadius.all(Radius.circular(20.0))), | |
child: Row( | |
mainAxisAlignment: MainAxisAlignment.spaceEvenly, | |
children: <Widget>[ | |
Column( |
This file contains 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
Padding( | |
padding: const EdgeInsets.only(left: 8.0), | |
child: Row( | |
mainAxisAlignment: MainAxisAlignment.end, | |
children: <Widget>[ | |
Row( | |
children: <Widget>[ | |
Text( | |
"\$84", | |
style: TextStyle( |
This file contains 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
Row( | |
children: <Widget>[ | |
Image.asset('images/cake.png'), | |
Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
crossAxisAlignment: CrossAxisAlignment.center, | |
children: <Widget>[ | |
Icon( | |
Icons.add, | |
color: Colors.white, |
This file contains 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
Padding( | |
padding: | |
const EdgeInsets.only(left: 40.0, top: 20.0, bottom: 10.0), | |
child: Wrap( | |
direction: Axis.horizontal, | |
children: <Widget>[ | |
Chip( | |
label: Text( | |
'1KG', | |
style: TextStyle(color: Colors.white), |
This file contains 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
AppBar( | |
elevation: 0.0, | |
backgroundColor: Theme.of(context).primaryColorDark, | |
//leading icon | |
leading: Icon( | |
CupertinoIcons.back, | |
color: Theme.of(context).accentColor, | |
), | |
// wrapped title in column | |
title: Column( |