flutter/dev/tools
Taha Tesser 7d89617a92
Fix TimePicker defaults for hourMinuteTextStyle and dayPeriodTextColor for Material 3 (#131253)
fixes [`TimePicker` color and visual issues](https://github.com/flutter/flutter/issues/127035)

## Description

- fixes default text style for `TimePicker`s  `hourMinuteTextStyle` and added a todo for https://github.com/flutter/flutter/issues/131247
- fixes correct default color not being accessed for  `dayPeriodTextColor`
-  Updates tests

### 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 MaterialApp(
      debugShowCheckedModeBanner: false,
      theme: ThemeData(useMaterial3: true),
      home: const Example(),
    );
  }
}

class Example extends StatelessWidget {
  const Example({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Sample'),
      ),
      body: Center(
        child: ElevatedButton(
          onPressed: () {
            showTimePicker(
              context: context,
              orientation: Orientation.portrait,
              initialEntryMode: TimePickerEntryMode.input,
              initialTime: TimeOfDay.now(),
              builder: (BuildContext context, Widget? child) {
                return MediaQuery(
                  data: MediaQuery.of(context)
                      .copyWith(alwaysUse24HourFormat: true),
                  child: child!,
                );
              },
            );
          },
          child: const Text('Open Time Picker'),
        ),
      ),
    );
  }
}

``` 
	
</details>

### Before

![ezgif com-video-to-gif](https://github.com/flutter/flutter/assets/48603081/b791501f-aed3-44f3-8f75-70a1e28038c6)

### After

![ezgif com-video-to-gif (1)](https://github.com/flutter/flutter/assets/48603081/1bb32064-a9b1-416d-8290-7d22b0d4fdb9)
2023-07-28 14:11:23 +00:00
..
bin Fix Gradle warning in a freshly flutter createed Android project (#122290) 2023-03-21 23:41:49 +00:00
gen_defaults Fix TimePicker defaults for hourMinuteTextStyle and dayPeriodTextColor for Material 3 (#131253) 2023-07-28 14:11:23 +00:00
gen_keycodes Manual roll to engine commit 9b14c382 using Dart SDK version 3.2.x (#131371) 2023-07-27 17:33:07 +00:00
localization Fix gen_date_localizations script and regenerate (#124547) 2023-04-11 16:54:54 -07:00
test Improve handling of certain icons in RTL (#130979) 2023-07-21 19:07:39 +02:00
vitool Manual roll to engine commit 9b14c382 using Dart SDK version 3.2.x (#131371) 2023-07-27 17:33:07 +00:00
.gitignore [flutter_conductor] update dev/tools with release tool (#69791) 2020-11-06 11:14:04 -08:00
dartdoc_checker.dart Migrate dartdoc to null safety (#84153) 2021-06-07 17:09:03 -07:00
dartdoc.dart Remove null-safety argument from DartPad doc samples (#127345) 2023-05-23 00:10:11 +00:00
examples_smoke_test.dart Enable unreachable_from_main lint - it is stable now!!1 (#129854) 2023-07-06 00:09:01 +00:00
find_engine_commit.dart begin migrating //flutter/dev/tools to null-safety (#80834) 2021-04-23 20:24:03 -07:00
java_and_objc_doc.dart Copy doc files from new to old location. (#109316) 2022-08-10 17:14:07 +00:00
mega_gallery.dart Enable dangling_library_doc_comments and library_annotations lints (#117365) 2022-12-20 16:03:21 -08:00
pubspec.yaml Manual roll to engine commit 9b14c382 using Dart SDK version 3.2.x (#131371) 2023-07-27 17:33:07 +00:00
repackage_gradle_wrapper.sh Point to a new artifacts location. (#70673) 2021-02-04 18:44:47 -08:00
update_icons.dart Improve handling of certain icons in RTL (#130979) 2023-07-21 19:07:39 +02:00