Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide unused buttons #91

Merged
merged 1 commit into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/pages/home/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,10 @@ class HomeController extends State<HomePage>
loggy.info('handleGetCurrentLocationSuccess(): success');
if (success is GetCurrentLocationSuccess) {
currentLocationNotifier.value = success;
mapController.move(
convertLocationDataToLatLng(success.currentLocation),
HomeViewStyles.initialZoom,
);
} else {
currentLocationNotifier.value = const GetCurrentLocationIsEmpty();
}
Expand Down
11 changes: 5 additions & 6 deletions lib/pages/home/home_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import 'package:ecoparking_flutter/domain/state/markers/find_nearby_parkings_sta
import 'package:ecoparking_flutter/domain/state/markers/get_current_location_state.dart';
import 'package:ecoparking_flutter/pages/home/home.dart';
import 'package:ecoparking_flutter/pages/home/home_view_styles.dart';
import 'package:ecoparking_flutter/pages/home/widgets/rounded_button/rounded_button.dart';
import 'package:ecoparking_flutter/pages/home/widgets/search_parking/search_parking_anchor.dart';
import 'package:flutter/material.dart';
import 'package:flutter_map/flutter_map.dart';
Expand Down Expand Up @@ -82,11 +81,11 @@ class HomePageView extends StatelessWidget {
controller: controller,
searchController: controller.searchController,
),
const SizedBox(width: HomeViewStyles.topButtonSpacing),
RoundedButton(
icon: Icons.notifications_none_rounded,
onPressed: controller.onNotificationPressed,
),
// const SizedBox(width: HomeViewStyles.topButtonSpacing),
// RoundedButton(
// icon: Icons.notifications_none_rounded,
// onPressed: controller.onNotificationPressed,
// ),
],
),
),
Expand Down
22 changes: 11 additions & 11 deletions lib/pages/profile/profile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,17 @@ class ProfileController extends State<ProfilePage>
leftIcon: Icons.person_outline_rounded,
onTap: _onEditProfile,
),
SettingButtonArguments(
title: 'Notification',
leftIcon: Icons.notifications_outlined,
onTap: () {
loggy.info('Notification');
NavigationUtils.navigateTo(
context: context,
path: AppPaths.testPage,
);
},
),
// SettingButtonArguments(
// title: 'Notification',
// leftIcon: Icons.notifications_outlined,
// onTap: () {
// loggy.info('Notification');
// NavigationUtils.navigateTo(
// context: context,
// path: AppPaths.testPage,
// );
// },
// ),
SettingButtonArguments(
title: 'Logout',
leftIcon: Icons.logout,
Expand Down
Loading