rename function
parent
3d0c8d3724
commit
6c3915b6ab
|
@ -40,7 +40,7 @@ class MyHomePage extends StatelessWidget {
|
|||
body: pageProvider.currentPageData['page'],
|
||||
bottomNavigationBar: NavigationBar(
|
||||
onDestinationSelected: isConfigured
|
||||
? pageProvider.currentPage
|
||||
? pageProvider.setCurrentPage
|
||||
: (value) => AwesomeDialog(
|
||||
context: context,
|
||||
dialogType: DialogType.info,
|
||||
|
|
|
@ -14,7 +14,7 @@ class PageProvider extends ChangeNotifier {
|
|||
|
||||
int get currentPageIndex => _currentPage.index;
|
||||
|
||||
void currentPage(int index) {
|
||||
void setCurrentPage(int index) {
|
||||
showForm = false;
|
||||
_currentPage = Pages.values[index];
|
||||
notifyListeners();
|
||||
|
|
Loading…
Reference in New Issue