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
int _selectCardIndex = 0; | |
List<String> goalCardList; | |
@override | |
void initState() { | |
super.initState(); | |
goalCardList = []; | |
goalCardList.add("Fat Loss"); | |
goalCardList.add("Weight Gain"); | |
goalCardList.add("Muscle Gain"); |
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
lass _HomeTabViewState extends State<HomeTabView> { | |
/// save current page state | |
int _currentPageIndex = 0; | |
AppBar get _appBar { | |
return AppBar( | |
/// [StatusBar] color light | |
brightness: Brightness.dark, | |
backgroundColor: UIHelper.SETTINGS_APP_BAR_COLOR, | |
leading: Image.asset(UIHelper.MENU_ICON), |
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
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) { |
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 _ReminderViewState extends State<ReminderView> { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
backgroundColor: Colors.white, | |
floatingActionButton: FloatingActionButton( | |
onPressed: () {}, | |
backgroundColor: Colors.transparent, | |
elevation: 0, | |
shape: CircleBorder( |
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
int _selectedLangIndex = 0; | |
int _tempSelectedIndex = 0; | |
bool _notification = false; | |
@override | |
Widget build(BuildContext context) { | |
return SafeArea( | |
child: Scaffold( | |
backgroundColor: Colors.white, | |
body: ListView( |
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 _ProfileViewState extends State<ProfileView> { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
backgroundColor: Colors.white, | |
appBar: _appBar, | |
body: ListView( | |
padding: EdgeInsets.symmetric(horizontal: UIHelper.Space20), | |
children: <Widget>[ | |
UIHelper.verticalSpace, |
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
List<HealthTips> listHealthTips = []; | |
@override | |
void initState() { | |
super.initState(); | |
listHealthTips.add(HealthTips( | |
title: "A Diet Without Exercise is Useless. ", | |
subTitle: " Interval Training is a form of exercise in which" | |
"you alternate between two or more different " | |
"exercise . This Consist of doing an exercise at" |
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
Widget build(BuildContext context) { | |
HealthTips tipItem = ModalRoute.of(context).settings.arguments; | |
return Scaffold( | |
appBar: AppBar( | |
centerTitle: false, | |
title: Text(Constants.HEALTH_TIPS), | |
backgroundColor: UIHelper.SETTINGS_APP_BAR_COLOR, | |
), | |
body: Column( | |
children: <Widget>[ |
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
List<String> exercises = []; | |
UnmodifiableListView<String> get items => UnmodifiableListView(exercises); | |
@override | |
void initState() { | |
super.initState(); | |
for (var i = 0; i < 8; i++) { | |
exercises.add("$i"); | |
} | |
} |
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
Physique _physique; | |
@override | |
void initState() { | |
super.initState(); | |
_physique = Physique(age: "", height: "", weight: "", level: ""); | |
} | |
@override | |
Widget build(BuildContext context) { |