Skip to content

Instantly share code, notes, and snippets.

@trey-rosius
Created January 23, 2019 19:13
Show Gist options
  • Select an option

  • Save trey-rosius/e455f030466b901dc98c360d1c8aee60 to your computer and use it in GitHub Desktop.

Select an option

Save trey-rosius/e455f030466b901dc98c360d1c8aee60 to your computer and use it in GitHub Desktop.
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),
),
backgroundColor: Theme.of(context).primaryColor,
padding:
EdgeInsets.symmetric(vertical: 3.0, horizontal: 15.0),
shape: new RoundedRectangleBorder(
borderRadius: new BorderRadius.circular(30.0)),
),
Padding(
padding: const EdgeInsets.only(left: 8.0, right: 8.0),
child: Chip(
label: Text(
'2KG',
style:
TextStyle(color: Theme.of(context).primaryColor),
),
backgroundColor: Theme.of(context).primaryColorDark,
padding: EdgeInsets.symmetric(
vertical: 3.0, horizontal: 15.0),
shape: new RoundedRectangleBorder(
borderRadius: new BorderRadius.circular(30.0),
side: BorderSide(
color: Theme.of(context).primaryColor,
width: 1.0)),
),
),
Padding(
padding: const EdgeInsets.only(left: 8.0, right: 8.0),
child: Chip(
label: Text(
'3KG',
style:
TextStyle(color: Theme.of(context).primaryColor),
),
backgroundColor: Theme.of(context).primaryColorDark,
padding: EdgeInsets.symmetric(
vertical: 3.0, horizontal: 15.0),
shape: new RoundedRectangleBorder(
borderRadius: new BorderRadius.circular(30.0),
side: BorderSide(
color: Theme.of(context).primaryColor,
width: 1.0)),
),
),
Padding(
padding: const EdgeInsets.only(left: 8.0, right: 8.0),
child: Chip(
label: Text(
'4KG',
style:
TextStyle(color: Theme.of(context).primaryColor),
),
backgroundColor: Theme.of(context).primaryColorDark,
padding: EdgeInsets.symmetric(
vertical: 3.0, horizontal: 15.0),
shape: new RoundedRectangleBorder(
borderRadius: new BorderRadius.circular(30.0),
side: BorderSide(
color: Theme.of(context).primaryColor,
width: 1.0)),
),
),
Padding(
padding: const EdgeInsets.only(left: 8.0, right: 8.0),
child: Chip(
label: Text(
'5KG',
style:
TextStyle(color: Theme.of(context).primaryColor),
),
backgroundColor: Theme.of(context).primaryColorDark,
padding: EdgeInsets.symmetric(
vertical: 3.0, horizontal: 15.0),
shape: new RoundedRectangleBorder(
borderRadius: new BorderRadius.circular(30.0),
side: BorderSide(
color: Theme.of(context).primaryColor,
width: 1.0)),
),
),
],
),
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment