flutter/dev
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
..
automated_tests Manual roll to engine commit 9b14c382 using Dart SDK version 3.2.x (#131371) 2023-07-27 17:33:07 +00:00
benchmarks Manual roll to engine commit 9b14c382 using Dart SDK version 3.2.x (#131371) 2023-07-27 17:33:07 +00:00
bots Manual roll to engine commit 9b14c382 using Dart SDK version 3.2.x (#131371) 2023-07-27 17:33:07 +00:00
ci Bump ubuntu from b795f8e to db8bf6f in /dev/ci/docker_linux (#128740) 2023-06-23 16:33:44 +00:00
conductor Manual roll to engine commit 9b14c382 using Dart SDK version 3.2.x (#131371) 2023-07-27 17:33:07 +00:00
customer_testing Manual roll to engine commit 9b14c382 using Dart SDK version 3.2.x (#131371) 2023-07-27 17:33:07 +00:00
devicelab Manual roll to engine commit 9b14c382 using Dart SDK version 3.2.x (#131371) 2023-07-27 17:33:07 +00:00
docs Bump min SDK to 2.19.0-0 (#117345) 2022-12-20 00:46:14 +00:00
forbidden_from_release_tests Manual roll to engine commit 9b14c382 using Dart SDK version 3.2.x (#131371) 2023-07-27 17:33:07 +00:00
integration_tests Updated integration_tests/platform_interaction test_step.dart (#131301) 2023-07-28 04:48:38 +00:00
manual_tests Manual roll to engine commit 9b14c382 using Dart SDK version 3.2.x (#131371) 2023-07-27 17:33:07 +00:00
missing_dependency_tests Remove uses of deprecated test_api imports (#124732) 2023-04-20 20:55:28 +00:00
snippets/config Remove null-safety argument from DartPad doc samples (#127345) 2023-05-23 00:10:11 +00:00
tools Fix TimePicker defaults for hourMinuteTextStyle and dayPeriodTextColor for Material 3 (#131253) 2023-07-28 14:11:23 +00:00
tracing_tests Manual roll to engine commit 9b14c382 using Dart SDK version 3.2.x (#131371) 2023-07-27 17:33:07 +00:00
analysis_options.yaml Enable more lints (#91642) 2021-10-14 22:03:03 -07:00
README.md Migrate to .ci.yaml (#82960) 2021-05-19 20:09:46 -07:00

This directory contains tools and resources that the Flutter team uses during the development of the framework. The tools in this directory should not be necessary for developing Flutter applications, though of course, they may be interesting if you are curious.

The tests in this directory are run in the framework_tests_misc-* shards.