Skip to content

Instantly share code, notes, and snippets.

View VB10's full-sized avatar
🏠
Working from home

Veli Bacik VB10

🏠
Working from home
View GitHub Profile
@VB10
VB10 / register_goal_view.dart
Last active July 24, 2019 20:05
Heltho UI Goal View dart
int _selectCardIndex = 0;
List<String> goalCardList;
@override
void initState() {
super.initState();
goalCardList = [];
goalCardList.add("Fat Loss");
goalCardList.add("Weight Gain");
goalCardList.add("Muscle Gain");
@VB10
VB10 / tab_bar.dart
Last active August 15, 2019 23:13
Healtho Tabbar
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),
@VB10
VB10 / notification_view.dart
Created August 15, 2019 23:26
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) {
@VB10
VB10 / reminder_view.dart
Last active August 15, 2019 23:39
Healtho Reminder Page
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(
@VB10
VB10 / settings_view.dart
Created August 15, 2019 23:46
Healtho Settings View
int _selectedLangIndex = 0;
int _tempSelectedIndex = 0;
bool _notification = false;
@override
Widget build(BuildContext context) {
return SafeArea(
child: Scaffold(
backgroundColor: Colors.white,
body: ListView(
@VB10
VB10 / profile_view.dart
Created August 15, 2019 23:55
Healtho Profile Page
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,
@VB10
VB10 / health_tips_view.dart
Created September 8, 2019 13:57
healtho tips
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"
@VB10
VB10 / tips_detail.dart
Created September 8, 2019 15:39
Tips Detail
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>[
@VB10
VB10 / exercise.dart
Created September 8, 2019 16:11
Exercise View
List<String> exercises = [];
UnmodifiableListView<String> get items => UnmodifiableListView(exercises);
@override
void initState() {
super.initState();
for (var i = 0; i < 8; i++) {
exercises.add("$i");
}
}
@VB10
VB10 / physiques.dart
Last active September 8, 2019 17:37
Physiques View
Physique _physique;
@override
void initState() {
super.initState();
_physique = Physique(age: "", height: "", weight: "", level: "");
}
@override
Widget build(BuildContext context) {