codegrue / flutter_material_pickers

A flutter package for displaying common picker dialogs.
https://pub.dev/packages/flutter_material_pickers
MIT License
98 stars 61 forks source link

[REQUEST] Customization of text color #44

Open fior-di-latte opened 2 years ago

fior-di-latte commented 2 years ago

Hi, thanks for the awesome package. It would be awesome if the text color within the dialog could be configured with an optional argument like most of the rest of the colors.

Changing the bodyText2 in the theme is not always appropriate for the entire app.

[As for me, it the background Color is white and the bodyText2 color is white, too. But in use, text is always placed in Containers that are blue.]

showMaterialResponsiveDialog(
    context: context,
    headerColor: Colors.green, // background color of the header area
    headerTextColor: Colors.white, // text fcolor of the header
    backgroundColor: Colors.lightGreen, // background color of the entire dialog
    buttonTextColor: Colors.red, // text color of the action bar buttons
  // add this: itemTextColor: Colors.black,
    child: Text('Custom dialog colors'),
);

Have a wonderful week everyone!