Last active
December 9, 2018 16:21
-
-
Save fabiomsr/a85dfacd786ddd5ed387c7991b58f247 to your computer and use it in GitHub Desktop.
Contact Category
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
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