Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
Hareesh-Nandigrama committed Aug 8, 2023
1 parent c196067 commit f976d45
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions lib/services/api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ import '../functions/utility/auth_user_helper.dart';
class APIService {
final dio = Dio(BaseOptions(
baseUrl: Endpoints.baseUrl,
connectTimeout: const Duration(seconds: 15),
receiveTimeout: const Duration(seconds: 15),
connectTimeout: const Duration(seconds: 30),
receiveTimeout: const Duration(seconds: 30),
headers: Endpoints.getHeader()));

final dio2 = Dio(BaseOptions(
connectTimeout: const Duration(seconds: 15),
receiveTimeout: const Duration(seconds: 15),
connectTimeout: const Duration(seconds: 30),
receiveTimeout: const Duration(seconds: 30),
headers: Endpoints.getHeader()));

APIService() {
Expand Down
2 changes: 0 additions & 2 deletions lib/widgets/login/login_webview.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ class _LoginWebViewState extends State<LoginWebView> {
await WebviewCookieManager().clearCookies();
print("its here");
Navigator.of(context).pushAndRemoveUntil(MaterialPageRoute(builder: (context) => EditProfile(profileModel: ProfileModel.fromJson(LoginStore.userData),)), (route) => false);
// Navigator.of(context)
// .pushNamedAndRemoveUntil('/', (Route<dynamic> route) => false);
}
}
},
Expand Down
3 changes: 3 additions & 0 deletions lib/widgets/ui/appbar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import 'package:onestop_dev/globals/my_colors.dart';
import 'package:onestop_dev/globals/my_fonts.dart';
import 'package:onestop_dev/pages/home/home.dart';
import 'package:onestop_dev/pages/notifications/notifications.dart';
import 'package:onestop_dev/stores/common_store.dart';
import 'package:provider/provider.dart';

AppBar appBar(
BuildContext context, {
Expand Down Expand Up @@ -75,6 +77,7 @@ AppBar appBar(
backgroundColor: kAppBarGrey,
child: IconButton(
onPressed: () {
context.read<CommonStore>().isPersonalNotif = true;
Navigator.pushNamed(context, NotificationPage.id);
},
icon: const Icon(
Expand Down

0 comments on commit f976d45

Please sign in to comment.