Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to set the "description" color? #25

Open
james-bltg opened this issue Sep 3, 2020 · 3 comments
Open

how to set the "description" color? #25

james-bltg opened this issue Sep 3, 2020 · 3 comments

Comments

@james-bltg
Copy link

I read the doc and find not how to set the description's color.
Anyone who knows how to set it?

@2math
Copy link

2math commented Jan 25, 2021

Sadly you can not set the fontSize either, bellow is current implementation, I think will be way better if we pass the description as Widget and not simple text

      Text(
                description,
                style: TextStyle(
                  color: yearColor,
                  fontSize: 12,
                  fontFamily: fontFamily,
                ),
              )

@SittiphanSittisak
Copy link

Hi, you can edit the description in flutter_rounded date_picker_header.dart

Step 1:
CTRL-click at the description properties of showRoundedDatePicker()

Step 2:
In flutter_rounded_date_picker_widget.dart at line 171, you will find "description: description". CTRL-click at "description:".

Step 3:
In flutter_rounded_date_picker_dialog.dart at line 242, you will find "final Widget header = FlutterRoundedDatePickerHeader(". CTRL-click at "FlutterRoundedDatePickerHeader:".

Step 4:
In flutter_rounded_data_picker_header.dart at line 181, It's the description widget.

However, I hope the developer will change this type from str to widget.

@2math
Copy link

2math commented Jan 31, 2022

Hi @SittiphanSittisak , yes you are right but this will update the library code on your machine only. If you work on multiple computers or a team, everyone must do the same. Also if you update the library one day and forget about it will loose your updates. I had to do similar fixes on a few libraries to prevent crashes :) . You have to see my pubspec file what giant TODO messages has for each developer what needs to do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants