Closed TahaTesser closed 2 weeks ago
fixes Wide DatePickerDialog "Switch to input" button has no margin from dialog side
DatePickerDialog
Currently, there is no material design token for the input mode button padding. This PR fixes the padding by taking date picker side padding values into account.
///
If you need help, consider asking for advice on the #hackers-new channel on Discord.
Checked the google testing failures here, there is a small expected screenshot change. 👍
fixes Wide
DatePickerDialog
"Switch to input" button has no margin from dialog sideDescription
Currently, there is no material design token for the input mode button padding. This PR fixes the padding by taking date picker side padding values into account.
Code sample
expand to view the code sample
```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( home: Scaffold( body: Center( child: Builder(builder: (BuildContext context) { return ElevatedButton( onPressed: () { showDatePicker( context: context, initialDate: DateTime.now(), firstDate: DateTime.utc(2010), lastDate: DateTime.utc(2030), ); }, child: const Text('Show Date Picker'), ); }), ), ), ); } } ```Before
After
Pre-launch Checklist
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.