1. 21 Feb, 2024 2 commits
    • Taha Tesser's avatar
      `CalendarDatePicker` doesn't announce selected date on desktop (#143583) · 5d2353c1
      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
      5d2353c1
    • Taha Tesser's avatar
      Add `timeSelectorSeparatorColor` and `timeSelectorSeparatorTextStyle` for... · 95cdebed
      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" /> |
      95cdebed
  2. 09 Feb, 2024 1 commit
  3. 01 Feb, 2024 1 commit
  4. 25 Jan, 2024 1 commit
  5. 24 Jan, 2024 1 commit
  6. 23 Jan, 2024 1 commit
  7. 09 Jan, 2024 1 commit
  8. 03 Jan, 2024 1 commit
  9. 02 Jan, 2024 1 commit
  10. 20 Dec, 2023 1 commit
  11. 19 Dec, 2023 1 commit
  12. 15 Dec, 2023 4 commits
  13. 06 Dec, 2023 1 commit
  14. 01 Dec, 2023 1 commit
  15. 15 Nov, 2023 1 commit
    • Srujan Gaddam's avatar
      Pin package:web 0.4.0 (#138428) · d8ffc739
      Srujan Gaddam authored
      This version is needed so that dart:js_interop can move to extension
      types. Also adds some code to handle some breaking changes:
      
      - Body -> Response. Body was an IDL interface mixin type we exposed in
      dart:html. Going forward, users should either use Request or Response.
      - Casts to JSAny. These are temporary until we move package:web types to
      extension types. Currently, package:web types can't implement JSObject
      as JSObject will move to be an extension type itself.
      Co-authored-by: 's avatarKevin Moore <kevmoo@users.noreply.github.com>
      d8ffc739
  16. 13 Nov, 2023 1 commit
  17. 03 Nov, 2023 1 commit
  18. 01 Nov, 2023 1 commit
  19. 31 Oct, 2023 1 commit
  20. 25 Oct, 2023 1 commit
  21. 17 Oct, 2023 1 commit
  22. 11 Oct, 2023 1 commit
  23. 10 Oct, 2023 1 commit
  24. 29 Sep, 2023 2 commits
  25. 20 Sep, 2023 2 commits
  26. 12 Sep, 2023 1 commit
  27. 24 Aug, 2023 1 commit
  28. 18 Aug, 2023 1 commit
  29. 17 Aug, 2023 1 commit
  30. 16 Aug, 2023 1 commit
  31. 10 Aug, 2023 1 commit
  32. 09 Aug, 2023 1 commit
  33. 08 Aug, 2023 1 commit
  34. 02 Aug, 2023 1 commit