Skip to content

Instantly share code, notes, and snippets.

@VB10
Created August 15, 2019 23:26
Show Gist options
  • Select an option

  • Save VB10/45d0b349594bdb9792f801b86be92509 to your computer and use it in GitHub Desktop.

Select an option

Save VB10/45d0b349594bdb9792f801b86be92509 to your computer and use it in GitHub Desktop.
Healtho Notification Page
List<String> _notificationList = [
"New Exercises and Plans Updated",
"You Just Consulted with our Nutritioni….",
"Your Mobile Number is Updated",
"Health Tips - why Breathing is important",
"You Just Complete the Pushups Ch..."
];
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.white,
body: ListView.builder(
padding: EdgeInsets.symmetric(horizontal: UIHelper.Space10),
itemCount: _notificationList.length,
itemBuilder: (context, index) {
return _cardItem(index);
},
));
}
Widget _cardItem(int index) => Card(
color: UIHelper.SETTINGS_CARD_BACKGROUND_COLOR,
margin: EdgeInsets.only(top: UIHelper.Space20),
child: ListTile(
title: Text(
_notificationList[index],
style: profileHeaderCardSubTitle,
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment