-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
365 additions
and
26 deletions.
There are no files selected for viewing
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
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
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
This file was deleted.
Oops, something went wrong.
87 changes: 87 additions & 0 deletions
87
lib/src/screens/end_user_dashboard/end_user_dashboard_screen.dart
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
// ignore_for_file: use_build_context_synchronously | ||
|
||
import 'package:flutter/material.dart'; | ||
import 'package:monerate/src/screens/export.dart'; | ||
import 'package:monerate/src/screens/settings_with_help/export.dart'; | ||
|
||
class EndUserDashboardScreen extends StatefulWidget { | ||
static const String kID = 'end_user_dashboard_screen'; | ||
const EndUserDashboardScreen({Key? key}) : super(key: key); | ||
|
||
@override | ||
_EndUserDashboardScreenState createState() => _EndUserDashboardScreenState(); | ||
} | ||
|
||
class _EndUserDashboardScreenState extends State<EndUserDashboardScreen> { | ||
int _currentIndex = 0; | ||
late PageController _pageController; | ||
|
||
@override | ||
void initState() { | ||
super.initState(); | ||
_pageController = PageController(); | ||
} | ||
|
||
@override | ||
void dispose() { | ||
// Clean up controllers when screen is disposed | ||
_pageController.dispose(); | ||
super.dispose(); | ||
} | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return WillPopScope( | ||
onWillPop: () async => false, | ||
child: Scaffold( | ||
body: SizedBox.expand( | ||
child: PageView( | ||
controller: _pageController, | ||
onPageChanged: (index) { | ||
setState(() => _currentIndex = index); | ||
}, | ||
children: [ | ||
Center( | ||
child: SingleChildScrollView( | ||
child: Padding( | ||
padding: const EdgeInsets.all(25), | ||
child: Column( | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
children: const [ | ||
Text( | ||
"End User HomePage", | ||
), | ||
], | ||
), | ||
), | ||
), | ||
), | ||
const SettingsWithHelpOption(), | ||
], | ||
), | ||
), | ||
bottomNavigationBar: BottomNavigationBar( | ||
currentIndex: _currentIndex, | ||
onTap: (value) { | ||
_currentIndex = value; | ||
_pageController.animateToPage( | ||
value, | ||
duration: const Duration(milliseconds: 100), | ||
curve: Curves.linear, | ||
); | ||
}, | ||
items: const [ | ||
BottomNavigationBarItem( | ||
icon: Icon(Icons.home), | ||
label: "Dashboard", | ||
), | ||
BottomNavigationBarItem( | ||
icon: Icon(Icons.settings), | ||
label: "Settings", | ||
), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export 'end_user_dashboard_screen.dart'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
export 'change_email/export.dart'; | ||
export 'change_password/export.dart'; | ||
export 'complete_profile/export.dart'; | ||
export 'construction_page.dart'; | ||
export 'dashboard/export.dart'; | ||
export 'end_user_dashboard/export.dart'; | ||
export 'financial_advisor_dashboard/export.dart'; | ||
export 'forgot_password/export.dart'; | ||
export 'login/export.dart'; | ||
export 'profile/export.dart'; | ||
export 'settings_with_help/export.dart'; | ||
export 'settings_without_help_option/export.dart'; | ||
export 'sign_up/export.dart'; | ||
export 'splash_screen.dart'; | ||
export 'splash_screen/export.dart'; | ||
export 'support_manager_dashboard/export.dart'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export 'financial_advisor_dashboard.dart'; |
87 changes: 87 additions & 0 deletions
87
lib/src/screens/financial_advisor_dashboard/financial_advisor_dashboard.dart
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
// ignore_for_file: use_build_context_synchronously | ||
|
||
import 'package:flutter/material.dart'; | ||
import 'package:monerate/src/screens/export.dart'; | ||
import 'package:monerate/src/screens/settings_with_help/export.dart'; | ||
|
||
class FinancialAdvisorDashboardScreen extends StatefulWidget { | ||
static const String kID = 'financial_advisor_dashboard_screen'; | ||
const FinancialAdvisorDashboardScreen({Key? key}) : super(key: key); | ||
|
||
@override | ||
_FinancialAdvisorDashboardScreenState createState() => _FinancialAdvisorDashboardScreenState(); | ||
} | ||
|
||
class _FinancialAdvisorDashboardScreenState extends State<FinancialAdvisorDashboardScreen> { | ||
int _currentIndex = 0; | ||
late PageController _pageController; | ||
|
||
@override | ||
void initState() { | ||
super.initState(); | ||
_pageController = PageController(); | ||
} | ||
|
||
@override | ||
void dispose() { | ||
// Clean up controllers when screen is disposed | ||
_pageController.dispose(); | ||
super.dispose(); | ||
} | ||
|
||
@override | ||
Widget build(BuildContext context) { | ||
return WillPopScope( | ||
onWillPop: () async => false, | ||
child: Scaffold( | ||
body: SizedBox.expand( | ||
child: PageView( | ||
controller: _pageController, | ||
onPageChanged: (index) { | ||
setState(() => _currentIndex = index); | ||
}, | ||
children: [ | ||
Center( | ||
child: SingleChildScrollView( | ||
child: Padding( | ||
padding: const EdgeInsets.all(25), | ||
child: Column( | ||
mainAxisAlignment: MainAxisAlignment.center, | ||
children: const [ | ||
Text( | ||
"Financial Advisor HomePage", | ||
), | ||
], | ||
), | ||
), | ||
), | ||
), | ||
const SettingsWithHelpOption(), | ||
], | ||
), | ||
), | ||
bottomNavigationBar: BottomNavigationBar( | ||
currentIndex: _currentIndex, | ||
onTap: (value) { | ||
_currentIndex = value; | ||
_pageController.animateToPage( | ||
value, | ||
duration: const Duration(milliseconds: 100), | ||
curve: Curves.linear, | ||
); | ||
}, | ||
items: const [ | ||
BottomNavigationBarItem( | ||
icon: Icon(Icons.home), | ||
label: "Dashboard", | ||
), | ||
BottomNavigationBarItem( | ||
icon: Icon(Icons.settings), | ||
label: "Settings", | ||
), | ||
], | ||
), | ||
), | ||
); | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export 'settings_with_help_option.dart'; |
Oops, something went wrong.