- 06 Oct, 2023 1 commit
-
-
Kostia Sokolovskyi authored
This PR mainly fixes several memory leaks in the `DateRangePickerDialog`. ### Description - Fixes https://github.com/flutter/flutter/issues/136033 by: 1) adding a disposal of several `RestorableValue`; 2) creating a separate `_DayItem` stateful widget that creates/updates/disposes internal `MaterialStatesController`. - Marks https://github.com/flutter/flutter/issues/136036. ### Tests - Updates `test/material/date_picker_theme_test.dart` to use `testWidgetsWithLeakTracking`; - Updates `test/material/date_range_picker_test.dart` to use `testWidgetsWithLeakTracking`.
-
- 06 Sep, 2023 1 commit
-
-
Polina Cherkasova authored
https://github.com/flutter/flutter/issues/130354 is fixed, but the test still fails, so converted it back to 'testWidgets' to investigate later.
-
- 28 Aug, 2023 1 commit
-
-
Taha Tesser authored
Fix `DatePickerDialog` & `DateRangePickerDialog` overflow when resized from landscape to portrait (#133327) fixes [resize window with a `showDateRangePicker` will make RenderFlex overflowed error](https://github.com/flutter/flutter/issues/131989) ### Description - This fixes `DatePickerDialog` & `DateRangePickerDialog` overflow error when resized from landscape to portrait. - Added tests that check these two widgets from landscape to portrait for no overflow errors. <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( debugShowCheckedModeBanner: false, home: Example(), ); } } class Example extends StatefulWidget { const Example({super.key}); @override State<Example> createState() => _ExampleState(); } class _ExampleState extends State<Example> { bool _portait = false; @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const Text('DatePicker & DateRangePicker'), ), body: MediaQuery( data: MediaQuery.of(context).copyWith( size: _portait ? const Size(400, 800) : const Size(800, 400), ), child: Column( mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [ DatePickerDialog( initialDate: DateTime.now(), firstDate: DateTime(2020), lastDate: DateTime(2030), initialEntryMode: DatePickerEntryMode.inputOnly, ), DateRangePickerDialog( currentDate: DateTime.now(), firstDate: DateTime(2020), lastDate: DateTime(2030), initialEntryMode: DatePickerEntryMode.inputOnly, ), ], ), ), floatingActionButton: FloatingActionButton( onPressed: () { setState(() { _portait = !_portait; }); }, child: const Icon(Icons.refresh), ), ); } } ``` </details> ### Before https://github.com/flutter/flutter/assets/48603081/81387cbb-cdcf-42bd-b4f8-b7a08317c955 ### After https://github.com/flutter/flutter/assets/48603081/36d28ea9-cfed-48ad-90f5-0459755e08c0
-
- 23 Aug, 2023 1 commit
-
-
Polina Cherkasova authored
-
- 14 Aug, 2023 1 commit
-
-
Polina Cherkasova authored
-
- 10 Aug, 2023 1 commit
-
-
LongCatIsLooong authored
Migrate tests in flutter/flutter. Once the tests here and in `*_customer_testing` are migrated, the default value of the migration flag will be changed from false to true, making the rounding hack disabled by default.
-
- 09 Aug, 2023 1 commit
-
-
Zachary Anderson authored
Reverts flutter/flutter#131998 Reverting for https://github.com/flutter/flutter/issues/132222
-
- 08 Aug, 2023 1 commit
-
-
Polina Cherkasova authored
-
- 17 Jul, 2023 1 commit
-
-
Polina Cherkasova authored
-
- 14 Jul, 2023 1 commit
-
-
LongCatIsLooong authored
-
- 13 Jun, 2023 1 commit
-
-
Qun Cheng authored
Updates most of the unit tests in the packages/flutter/test/material folder so that they'll pass if ThemeData.useMaterial3 defaults to true. All of the tests have wired useMaterial3 to false and will need to be updated with a M3 version. related to #127064
-
- 06 Jun, 2023 1 commit
-
-
LongCatIsLooong authored
Add the conditional rounding that I forgot to add in https://github.com/flutter/flutter/pull/127099
-
- 30 May, 2023 1 commit
-
-
Taha Tesser authored
fixes https://github.com/flutter/flutter/issues/127795
-
- 26 May, 2023 1 commit
-
-
Taha Tesser authored
-
- 24 Apr, 2023 1 commit
-
-
Tirth authored
-
- 01 Apr, 2023 1 commit
-
-
Hans Muller authored
M3 DatePicker landscape header text style is now TextTheme.headlineSmall
-
- 15 Mar, 2023 1 commit
-
-
Justin McCandless authored
DateRangePicker now has a keyboardType parameter, same as DatePicker.
-
- 28 Feb, 2023 1 commit
-
-
Michael Goderbauer authored
Fix how tests count open SemanticsHandles
-
- 18 Jan, 2023 1 commit
-
-
Michael Goderbauer authored
-
- 07 Dec, 2022 1 commit
-
-
harperl-lgtm authored
* Date picker special labeling for currentDate with localization and tests. * Updated CalendarDatePicker semantics test * removed recursive import * changed labeling for current date to be less verbose
-
- 15 Nov, 2022 1 commit
-
-
Tae Hyung Kim authored
* init * upper case only when material 2 * fix test * fix test * fix tests again * Add all tests * analyze" * fix stepper
-
- 27 Apr, 2022 1 commit
-
-
Phil Quitslund authored
-
- 14 Apr, 2022 1 commit
-
-
Michael Goderbauer authored
-
- 08 Mar, 2022 1 commit
-
-
Andrei Diaconu authored
-
- 08 Oct, 2021 3 commits
-
-
Ian Hickson authored
-
Zachary Anderson authored
This reverts commit 5fd259be.
-
Ian Hickson authored
-
- 23 Jun, 2021 1 commit
-
-
Greg Spencer authored
-
- 28 Apr, 2021 1 commit
-
-
Alexandre Ardhuin authored
-
- 22 Mar, 2021 1 commit
-
-
Shi-Hao Hong authored
-
- 17 Mar, 2021 1 commit
-
-
Shi-Hao Hong authored
-
- 04 Mar, 2021 1 commit
-
-
Michael Goderbauer authored
-
- 19 Feb, 2021 1 commit
-
-
Darren Austin authored
Added the ability to bring up the date picker dialogs in calendar or text input only modes that don't allow the user to switch. (#76343)
-
- 21 Oct, 2020 1 commit
-
-
Michael Goderbauer authored
-
- 07 Oct, 2020 1 commit
-
-
Darren Austin authored
Migrate Material framework tests to null safety.
-
- 05 Oct, 2020 1 commit
-
-
Darren Austin authored
Fixed a problem with invalid dates when switching back to calendar mode in the date range picker. (#67159)
-
- 26 Sep, 2020 1 commit
-
-
Nguyễn Thanh Hải authored
-
- 03 Aug, 2020 1 commit
-
-
Hans Muller authored
-
- 28 Jul, 2020 1 commit
-
-
Darren Austin authored
Updated references to the old button classes to the new ones in comments and documentation for tests in the material and cupertino libraries. (#62164)
-
- 07 Jul, 2020 1 commit
-
-
Darren Austin authored
-