Repository navigation
Closed
flutter/packages
#12697Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listhas reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packagespackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.team-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages teamwaiting for PR to land (fixed)A fix is in flightA fix is in flight
Description
Steps to reproduce
In #177911, only the date selection was fixed, but the issue with the year selection remains.
Expected results
The year selection in CalendarDatePicker should also use the color property of borderSide.
Actual results
The year selection in CalendarDatePicker is overridden by todayForegroundColor.
Code sample
Code sample
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
datePickerTheme: DatePickerThemeData(
todayBorder: BorderSide(color: Colors.red, width: 4),
todayForegroundColor: WidgetStateProperty.all(Colors.blue),
todayBackgroundColor: WidgetStateProperty.all(Colors.white),
),
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
),
home: Scaffold(
body: Center(
child: CalendarDatePicker(
initialDate: DateTime.now(),
firstDate: DateTime(1900),
lastDate: DateTime(2100),
onDateChanged: (DateTime value) {},
),
),
),
);
}
}Screenshots or Video
Logs
Logs
[Paste your logs here]Flutter Doctor output
Doctor output
[!] Flutter (Channel stable, 3.44.1, on Microsoft Windows [版本 10.0.26200.8655], locale zh-TW) [545ms]
• Flutter version 3.44.1 on channel stable at C:\Users\user\fvm\default
! Warning: `flutter` on your path resolves to C:\Users\user\fvm\versions\3.44.1\bin\flutter, which is not inside
your current Flutter SDK checkout at C:\Users\user\fvm\default. Consider adding C:\Users\user\fvm\default\bin to
the front of your path.
! Warning: `dart` on your path resolves to C:\Users\user\fvm\versions\3.44.1\bin\dart, which is not inside your
current Flutter SDK checkout at C:\Users\user\fvm\default. Consider adding C:\Users\user\fvm\default\bin to the
front of your path.
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 924134a44c (6 weeks ago), 2026-05-29 12:13:22 -0400
• Engine revision c416acfeb8
• Dart version 3.12.1
• DevTools version 2.57.0
• Feature flags: enable-web, no-enable-linux-desktop, no-enable-macos-desktop, enable-windows-desktop,
enable-android, enable-ios, cli-animations, enable-native-assets, enable-swift-package-manager,
omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly
to perform update checks and upgrades.
[✓] Windows Version (11 專業版 64-bit, 25H2, 2009) [5.4s]
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [2.8s]
• Android SDK at C:\Users\user\AppData\Local\Android\Sdk
• Emulator version 35.2.10.0 (build_id 12414864) (CL:N/A)
✗ Flutter requires Android SDK 36 and the Android BuildTools 28.0.3
To update the Android SDK visit https://flutter.dev/to/windows-android-setup for detailed instructions.
• All Android licenses accepted.
[✗] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe) [124ms]
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.14.31 (April 2026)) [123ms]
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.14.37216.2
• Windows 10 SDK version 10.0.26100.0
[✓] Connected device (2 available) [256ms]
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [版本 10.0.26200.8655]
• Edge (web) • edge • web-javascript • Microsoft Edge 150.0.4078.48
[✓] Network resources [423ms]
• All expected network resources are available.Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listhas reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: material_uimaterial_ui package in flutter/packagesmaterial_ui package in flutter/packagespackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.team-designOwned by Design Languages teamOwned by Design Languages teamtriaged-designTriaged by Design Languages teamTriaged by Design Languages teamwaiting for PR to land (fixed)A fix is in flightA fix is in flight


Activity
suryaKommana2662 commentedon Jul 13, 2026
@Xiang329 Thanks for filing the issue and for providing a clear reproduction sample. I was able to reproduce this issue on the latest Flutter stable channel. The
todayBordercolor is correctly applied in the date picker view, but in the year picker it is still overridden bytodayForegroundColor, as described. Routing to theteam-designfor further investigation.Flutter Doctor Output
[material_ui] Fix `todayBorder` color being overridden by `todayForeg…
github-actions commentedon Sep 28, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.