Skip to content

Commit

Permalink
Merge pull request #57 from sambitraze/master
Browse files Browse the repository at this point in the history
router fix try 1
  • Loading branch information
Cryptonex7 authored Aug 22, 2020
2 parents 5368b27 + 138ef1d commit 4fc8980
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .flutter-plugins-dependencies

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Kide
`v2.1.1+44D`
`v2.1.1+46D`
![Build Signed APK](https://github.com/Cryptonex7/Kide/workflows/Build%20Signed%20APK/badge.svg?branch=dev)

A personalized KIIT guide.
Expand Down
4 changes: 2 additions & 2 deletions lib/MyApp.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class _MyAppState extends State<MyApp> {
Widget build(BuildContext context) {
return MultiProvider(
providers: [
ChangeNotifierProvider(create: (context) => Router()),
ChangeNotifierProvider(create: (context) => BottomNavRouter()),
ChangeNotifierProvider(create: (context) => Bookmarks()),
ChangeNotifierProvider(create: (context) => GetMarkers()),
ChangeNotifierProvider(create: (context) => GetGameDetails()),
Expand Down Expand Up @@ -217,7 +217,7 @@ class _MyHomePageState extends State<MyHomePage> {
Theme.of(context).brightness == Brightness.dark ? true : false;
ct++;
}
final indexState = Provider.of<Router>(context);
final indexState = Provider.of<BottomNavRouter>(context);
return Scaffold(
key: _scaffoldKey,
drawer: Drawer(
Expand Down
2 changes: 1 addition & 1 deletion lib/providers/router.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flutter/material.dart';

class Router with ChangeNotifier{
class BottomNavRouter with ChangeNotifier{
int _bottomNavIndex = 2;

int get bottomNavIndex {
Expand Down
2 changes: 1 addition & 1 deletion lib/util/constants.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const String VERSION = "2.1.1+45D";
const String VERSION = "2.1.1+46D";
const String MAPS = "Maps";
const String CONTACTS = "Contacts";
const String HOME = "Home";
Expand Down
2 changes: 1 addition & 1 deletion lib/widgets/BottomNav.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import "package:provider/provider.dart";
class BottomNav extends StatelessWidget {
@override
Widget build(BuildContext context) {
final indexState = Provider.of<Router>(context);
final indexState = Provider.of<BottomNavRouter>(context);
final int _currentIndex = indexState.bottomNavIndex;
return CurvedNavigationBar(
height: 55,
Expand Down

0 comments on commit 4fc8980

Please sign in to comment.