flutter/dev
Taha Tesser 1e770c3808
Add cancelButtonStyle & confirmButtonStyle to the DatePickerThemeData (#132847)
fixes [Unable to adjust the color for "Cancel" and "Ok" button in datePicker dialog](https://github.com/flutter/flutter/issues/127739)

### 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,
        datePickerTheme: DatePickerThemeData(
          cancelButtonStyle: TextButton.styleFrom(
            shape: const RoundedRectangleBorder(
              borderRadius: BorderRadius.all(Radius.circular(16)),
              side: BorderSide(color: Colors.red),
            ),
            backgroundColor: Colors.white,
            foregroundColor: Colors.red,
            elevation: 3,
            shadowColor: Colors.red,
          ),
          confirmButtonStyle: TextButton.styleFrom(
            shape: const RoundedRectangleBorder(
              borderRadius: BorderRadius.all(Radius.circular(16)),
            ),
            backgroundColor: Colors.green[700],
            foregroundColor: Colors.white,
            elevation: 3,
            shadowColor: Colors.green[700],
          ),
        ),
      ),
      home: const Example(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: DatePickerDialog(
          initialDate: DateTime.now(),
          firstDate: DateTime(2020),
          lastDate: DateTime(2030),
        ),
      ),
    );
  }
}
``` 

</details>

### Before 

Not possible to customize action buttons from the `DatePickerThemeData`.

### After 

![Screenshot 2023-08-18 at 16 42 00](https://github.com/flutter/flutter/assets/48603081/4ec01e93-c661-491d-9253-d687da8b76f3)
2023-08-30 21:16:13 +00:00
..
a11y_assessments Add more use cases to a11y assessments (#132325) 2023-08-16 16:44:11 +00:00
automated_tests Update flutter packages to pick up latest vm_service (#133335) 2023-08-25 11:03:35 -07:00
benchmarks Update flutter packages to pick up latest vm_service (#133335) 2023-08-25 11:03:35 -07:00
bots Add doxygen doc generation. (#131356) 2023-08-29 11:12:02 -07:00
ci Bump activesupport from 6.1.7.3 to 6.1.7.6 in /dev/ci/mac (#133225) 2023-08-24 20:06:51 +00:00
conductor Update flutter packages to pick up latest vm_service (#133335) 2023-08-25 11:03:35 -07:00
customer_testing Update flutter packages to pick up latest vm_service (#133335) 2023-08-25 11:03:35 -07:00
devicelab add missing forwards of local-engine-host in benchmark runners (#133517) 2023-08-29 00:31:14 +00:00
docs Add doxygen doc generation. (#131356) 2023-08-29 11:12:02 -07:00
forbidden_from_release_tests Upgrade flutter packages. (#132697) 2023-08-16 16:26:58 -07:00
integration_tests Upgrade packages. (#133593) 2023-08-29 15:18:12 -07: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 Add cancelButtonStyle & confirmButtonStyle to the DatePickerThemeData (#132847) 2023-08-30 21:16:13 +00:00
tracing_tests Update flutter packages to pick up latest vm_service (#133335) 2023-08-25 11:03:35 -07: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.