Created
August 15, 2019 23:26
-
-
Save VB10/45d0b349594bdb9792f801b86be92509 to your computer and use it in GitHub Desktop.
Healtho Notification Page
This file contains hidden or 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
| 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