Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add option to manually set light/dark appearance (overrideUserInterfaceStyle)

Đang mở
#77 2 bình luận 1 reaction 1 người được giao Xem trên GitHub

@LuisThein đang làm issue này rồi.

Từ ngày 8/6/2025.

  • #1 của @timbrueckner — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

enhancement
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.plist or 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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của fluttercommunity/apple_maps_flutter

Tất cả issue của fluttercommunity/apple_maps_flutter

Issue tương tự

Thêm issue về Dart

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.