Add option to manually set light/dark appearance (overrideUserInterfaceStyle)
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Is your feature request related to a problem? Please describe.
I'm building a themable Flutter app where users can manually choose between light or dark mode, regardless of the system theme. Currently, the apple_maps_flutter plugin only follows the iOS system appearance, and there’s no way to manually set the map style to light or dark programmatically. This results in inconsistent theming when the app is in dark mode but the system is in light mode (or vice versa).
Describe the solution you'd like
I’d like the plugin to expose an option in the AppleMap widget that allows developers to explicitly set the map appearance mode.
Example:
AppleMap(
appearance: MapAppearance.dark, // .light, .dark, .system (default)
)
Which would internally map to:
if #available(iOS 13.0, *) {
map.overrideUserInterfaceStyle = .dark // or .light / .unspecified
}
Describe alternatives you've considered
- Forking the plugin and modifying the native iOS code to expose a custom method channel for
overrideUserInterfaceStyle, but this increases maintenance burden. - Forcing the entire app to change the system interface style via
Info.plistor theming wrappers, which affects the whole app and doesn't allow per-widget control.
Additional context
This would bring more flexibility for apps that support manual theme switching and improve visual consistency in user interfaces that integrate Apple Maps.
Thank you for the great work on this plugin!
- Ngôn ngữ chính
- Dart
- Star
- 84
- Fork
- 120
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của fluttercommunity/apple_maps_flutter
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 66/100
fluttercommunity/apple_maps_flutter#85 · 8 bình luận · 5 reaction ·
-
Crash in MKPuckAccuracyLayer _updateColors due to CFStringGetLength (iOS)Có thể đã có người làm @LuisThein đã nhận 277 ngày trước. Đang mởbug
fluttercommunity/apple_maps_flutter#81 · 1 người được giao ·
-
incorrect zoom when turning the camera programmatically on the mapCó thể làm lại được @LuisThein đã nhận 340 ngày trước và không có pull request nào đang mở. Đang mởbug
fluttercommunity/apple_maps_flutter#79 · 1 người được giao ·
-
Apple maps consumes more CPU and memory than google mapsCó thể làm lại được @LuisThein đã nhận 442 ngày trước và không có pull request nào đang mở. Đang mởbug
fluttercommunity/apple_maps_flutter#78 · 1 người được giao ·
Tất cả issue của fluttercommunity/apple_maps_flutter
Issue tương tự
-
bug enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
AOSSIE-Org/Ell-ena#356 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
espresso3389/pdfrx#776 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
MostroP2P/app#881 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[기능 제안]Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
atsign-foundation/at_server#2896 ·
Maintainer thường phản hồi trong vòng 1 ngày