Skip to content

Instantly share code, notes, and snippets.

@fabiomsr
Last active December 9, 2018 16:21
Show Gist options
  • Save fabiomsr/a85dfacd786ddd5ed387c7991b58f247 to your computer and use it in GitHub Desktop.
Save fabiomsr/a85dfacd786ddd5ed387c7991b58f247 to your computer and use it in GitHub Desktop.
Contact Category
class _ContactCategory extends StatelessWidget {
final IconData icon;
final List<_ContactCategoryItem> children;
_ContactCategory({Key key, this.icon, this.children}): super(key: key);
@override
Widget build(BuildContext context) {
final ThemeData themeData = Theme.of(context);
return Container(
padding: const EdgeInsets.symmetric(vertical: 16.0),
decoration: BoxDecoration(
border: Border(bottom: BorderSide(color: themeData.dividerColor))
),
child: Row (
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget> [
Container(
padding: const EdgeInsets.symmetric(vertical: 24.0),
width: 72.0,
child: Icon(icon, color: themeData.primaryColor)
),
Flexible(child: Column(children: children))
]
)
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment