1. 06 Oct, 2023 1 commit
  2. 06 Sep, 2023 1 commit
  3. 28 Aug, 2023 1 commit
    • Taha Tesser's avatar
      Fix `DatePickerDialog` & `DateRangePickerDialog` overflow when resized from... · a0943e65
      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
      a0943e65
  4. 23 Aug, 2023 1 commit
  5. 14 Aug, 2023 1 commit
  6. 10 Aug, 2023 1 commit
  7. 09 Aug, 2023 1 commit
  8. 08 Aug, 2023 1 commit
  9. 17 Jul, 2023 1 commit
  10. 14 Jul, 2023 1 commit
  11. 13 Jun, 2023 1 commit
    • Qun Cheng's avatar
      Update unit tests in material library for Material 3 (#128725) · a5f8b64e
      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
      a5f8b64e
  12. 06 Jun, 2023 1 commit
  13. 30 May, 2023 1 commit
  14. 26 May, 2023 1 commit
  15. 24 Apr, 2023 1 commit
  16. 01 Apr, 2023 1 commit
  17. 15 Mar, 2023 1 commit
  18. 28 Feb, 2023 1 commit
  19. 18 Jan, 2023 1 commit
  20. 07 Dec, 2022 1 commit
  21. 15 Nov, 2022 1 commit
  22. 27 Apr, 2022 1 commit
  23. 14 Apr, 2022 1 commit
  24. 08 Mar, 2022 1 commit
  25. 08 Oct, 2021 3 commits
  26. 23 Jun, 2021 1 commit
  27. 28 Apr, 2021 1 commit
  28. 22 Mar, 2021 1 commit
  29. 17 Mar, 2021 1 commit
  30. 04 Mar, 2021 1 commit
  31. 19 Feb, 2021 1 commit
  32. 21 Oct, 2020 1 commit
  33. 07 Oct, 2020 1 commit
  34. 05 Oct, 2020 1 commit
  35. 26 Sep, 2020 1 commit
  36. 03 Aug, 2020 1 commit
  37. 28 Jul, 2020 1 commit
  38. 07 Jul, 2020 1 commit