- 21 Feb, 2024 2 commits
-
-
Taha Tesser authored
fixes [Screen reader is not announcing the selected date as selected on DatePicker](https://github.com/flutter/flutter/issues/143439) ### Descriptions - This fixes an issue where `CalendarDatePicker` doesn't announce selected date on desktop. - Add semantic label to describe the selected date is indeed "Selected". ### Code sample <details> <summary>expand to view the code sample</summary> ```dart import 'package:flutter/material.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); @override Widget build(BuildContext context) { return const MaterialApp( home: MyHomePage(title: 'Flutter Demo Home Page'), ); } } class MyHomePage extends StatefulWidget { const MyHomePage({super.key, required this.title}); final String title; @override MyHomePageState createState() => MyHomePageState(); } class MyHomePageState extends State<MyHomePage> { void _showDatePicker() async { await showDatePicker( context: context, initialDate: DateTime.now(), firstDate: DateTime(1900), lastDate: DateTime(2200), ); } @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: Text(widget.title, style: const TextStyle(fontFamily: 'ProductSans')), ), body: const Center( child: Text('Click the button to show date picker.'), ), floatingActionButton: FloatingActionButton( onPressed: _showDatePicker, tooltip: 'Show date picker', child: const Icon(Icons.edit_calendar), ), ); } } // 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( // debugShowCheckedModeBanner: false, // home: Scaffold( // body: Center( // child: CalendarDatePicker( // initialDate: DateTime.now(), // firstDate: DateTime(2020), // lastDate: DateTime(2050), // onDateChanged: (date) { // print(date); // }, // ), // ), // ), // ); // } // } ``` </details> ### Before https://github.com/flutter/flutter/assets/48603081/c82e1f15-f067-4865-8a5a-1f3c0c8d91da ### After https://github.com/flutter/flutter/assets/48603081/193d9e26-df9e-4d89-97ce-265c3d564607
-
Taha Tesser authored
Add `timeSelectorSeparatorColor` and `timeSelectorSeparatorTextStyle` for Material 3 Time Picker (#143739) fixes [`Time selector separator` in TimePicker is not centered vertically](https://github.com/flutter/flutter/issues/143691) Separator currently `hourMinuteTextStyle` to style itself. This introduces `timeSelectorSeparatorColor` and `timeSelectorSeparatorTextStyle` from Material 3 specs to correctly style the separator. This also adds ability to change separator color without changing `hourMinuteTextColor`. ### Specs for the time selector separator https://m3.material.io/components/time-pickers/specs ![image](https://github.com/flutter/flutter/assets/48603081/0c84f649-545d-441b-adbf-2b9ec872b14c) ### Code sample <details> <summary>expand to view the code sample</summary> ```dart import 'package:flutter/material.dart'; void main() { runApp(const App()); } class App extends StatelessWidget { const App({super.key}); @override Widget build(BuildContext context) { return MaterialApp( theme: ThemeData( // timePickerTheme: TimePickerThemeData( // hourMinuteTextColor: Colors.amber, // ) ), home: Scaffold( body: Center( child: Builder(builder: (context) { return ElevatedButton( onPressed: () async { await showTimePicker( context: context, initialTime: TimeOfDay.now(), ); }, child: const Text('Pick Time'), ); }), ), ), ); } } ``` </details> | Before | After | | --------------- | --------------- | | <img src="https://github.com/flutter/flutter/assets/48603081/20beeba4-5cc2-49ee-bba8-1c552c0d1e44" /> | <img src="https://github.com/flutter/flutter/assets/48603081/24927187-aff7-4191-930c-bceab6a4b4c2" /> |
-
- 25 Jan, 2024 1 commit
-
-
LouiseHsu authored
Fixes https://github.com/flutter/flutter/issues/141764 Translation suggestion here: https://tc.corp.google.com/btviewer/edittranslation?project=Flutter&msgId=8222331119728136330&language=zh-CN ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] All existing and new tests are passing.
-
- 01 Dec, 2023 1 commit
-
-
Bruno Leroux authored
## Description This PR updates the Material label for the share option, currently it is "**Share...**" (the expected label on iOS), on Android it should be "**Share**". Native Android TextField screenshot: ![Capture dâÃ
cran du 2023-11-20 17-19-02](https://github.com/flutter/flutter/assets/840911/6004b900-0ba4-441e-a814-4afd0c0e2fe2) ## Related Issue Step 2 for https://github.com/flutter/flutter/issues/138728 ## Tests Adds 1 test.
-
- 17 Oct, 2023 1 commit
-
-
Hans Muller authored
Fixes https://github.com/flutter/flutter/issues/136090
-
- 10 Oct, 2023 1 commit
-
-
Mitchell Goodwin authored
Seperates tests for the localizations package into Material2 and Material3 versions and removes dependency on theme. More info in #127064
-
- 14 Jul, 2023 1 commit
-
-
Bruno Leroux authored
## Description This PR update the finnish translations for tab label. ## Related Issue fixes https://github.com/flutter/flutter/issues/110451 ## Tests Adds 2 tests.
-
- 13 Jul, 2023 1 commit
-
-
Tae Hyung Kim authored
See title. According to [CLDR](https://icu4c-demos.unicode.org/icu-bin/locexp?_=da_DK&d_=en&_l=da), proper time of day format should be `HH.mm`. Fixes https://github.com/flutter/flutter/issues/130234.
-
- 09 Jun, 2023 1 commit
-
-
Hans Muller authored
Updated the localization tests so that they'll DTRT when useMaterial3:true becomes the default for ThemeData. In a few cases there are M2 and M3 tests now, to check features that are significantly different in Material3, notably the double ring for the 24 hour input dial. | Material 2 | Material 3| |---------|---------| | <img width="250" alt="Screenshot 2023-06-08 at 10 47 37 AM" src="https://github.com/flutter/flutter/assets/1377460/6ca95e22-b3f1-4f6b-9e39-79c888ba58f1"> | <img width="257" alt="Screenshot 2023-06-08 at 10 47 13 AM" src="https://github.com/flutter/flutter/assets/1377460/19b685bf-c812-4c87-baed-70fa56efaad8"> | In M3, most aspects of the ideographic text styles are the same as for alphabetic styles, so there are some tweaks here to account for that.
-
- 20 Apr, 2023 1 commit
-
-
chunhtai authored
as title
-
- 11 Apr, 2023 1 commit
-
-
Tae Hyung Kim authored
Internal bug: b/256596915 Turns out we need to regenerate date localizations in order for the `intl` package to be setup properly within Flutter. This PR fixes the script (since it assumes the use of the old `.packages` way of handling packages), and regenerates the `generated_date_localizations.dart` file.
-
- 10 Apr, 2023 1 commit
-
-
chunhtai authored
ExpansionTile audit
-
- 04 Apr, 2023 1 commit
-
-
Tae Hyung Kim authored
Reverts flutter/flutter#124088 This PR should properly incorporate the new Welsh translations into Flutter (and maybe some other strings that seem to be updated in TC). I think the other translation changes come from this issue: https://github.com/flutter/flutter/issues/115181. Fixes https://github.com/flutter/flutter/issues/120124.
-
- 14 Mar, 2023 1 commit
-
-
pdblasi-google authored
Reland: Updates `flutter_localizations/test` to stop using `TestWindow`
-
- 10 Mar, 2023 1 commit
-
-
Casey Hillers authored
* Revert "Remove references to BindingBase.window (#122119)" This reverts commit c7681f00. * Revert "Remove another reference to BindingBase.window (#122341)" This reverts commit 6ec44450. * Revert "Reland (2): Removes single window assumptions from `flutter_test` (#122233)" This reverts commit eb3d317e. * Revert "Remove single view assumption from TestViewConfiguration (#122352)" This reverts commit 927289fb. * Revert "Updates `flutter/test/cupertino` to no longer use `TestWindow` (#122325)" This reverts commit 67e17e45. * Revert "Updates `flutter/test/gestures` to no longer reference `TestWindow` (#122327)" This reverts commit c2a5111c. * Revert "Updates `flutter/test/rendering` to no longer use `TestWindow` (#122347)" This reverts commit 28b65e08. * Revert "Updates `flutter_localizations/test` to stop using `TestWindow` (#122321)" This reverts commit 01367d52.
-
- 09 Mar, 2023 1 commit
-
-
pdblasi-google authored
Updates `flutter_localizations/test` to stop using `TestWindow`
-
- 28 Feb, 2023 1 commit
-
-
Xilai Zhang authored
This reverts commit fd65fd1b.
-
- 27 Feb, 2023 1 commit
-
-
Taha Tesser authored
Fix `ExpansionTile` double tap to collapse/expanded and expanded/collapsed states semantics announcements
-
- 11 Jan, 2023 1 commit
-
-
Tae Hyung Kim authored
* init * add test
-
- 14 Dec, 2022 1 commit
-
-
Greg Spencer authored
* Make some minor changes in preparation for updating the Time Picker to M3 * Revert OutlineInputBorder.borderRadius type change * Revert more OutlineInputBorder.borderRadius changes. * Convert TimePicker to Material 3 * Add example test * Revert OutlineInputBorder.borderRadius type change * Fix test * Review Changes * Merge changes * Some sizing and elevation fixes * Fix localization tests
-
- 25 Jul, 2022 1 commit
-
-
Tae Hyung Kim authored
* init * testS * init * accidentally committed wrong file
-
- 03 May, 2022 1 commit
-
-
Phil Quitslund authored
-
- 08 Apr, 2022 1 commit
-
-
Michael Goderbauer authored
-
- 30 Mar, 2022 1 commit
-
-
Michael Goderbauer authored
-
- 01 Dec, 2021 1 commit
-
-
Ian Hickson authored
-
- 03 Nov, 2021 1 commit
-
-
Konstantin Scheglov authored
-
- 08 Oct, 2021 3 commits
-
-
Ian Hickson authored
-
Zachary Anderson authored
This reverts commit 5fd259be.
-
Ian Hickson authored
-
- 01 Oct, 2021 1 commit
-
-
Fernando Moraes authored
-
- 16 Jun, 2021 1 commit
-
-
greymag authored
-
- 14 Jun, 2021 1 commit
-
-
Greg Spencer authored
This adds avoid_dynamic_calls to the list of lints, and fixes all instances where it was violated. Importantly, this lint is NOT turned on for flutter/packages/test, because those changes are happening in another PR: #84478
-
- 22 Apr, 2021 1 commit
-
-
Phil Quitslund authored
-
- 16 Apr, 2021 1 commit
-
-
Ray Rischpater, KF6GPE authored
-
- 20 Feb, 2021 1 commit
-
-
Sam Rawlins authored
-
- 02 Feb, 2021 1 commit
-
-
Jan Lübeck authored
-
- 26 Jan, 2021 1 commit
-
-
Jia Hao authored
-
- 12 Nov, 2020 1 commit
-
-
Darren Austin authored
Migrate flutter_localizations to null safety.
-
- 12 Oct, 2020 1 commit
-
-
Shi-Hao Hong authored
* Expose date symbols and patterns for en_US in framework
-
- 19 Aug, 2020 1 commit
-
-
Rami authored
-