Ruba
Ruba

Reputation: 53

flutter packages how to know the properties

I am trying to use this package datetime_picker_formfield 1.0.0 and I want to change the calendar font size and the colors of the whole calendar can anyone tell me from where I can search about the properties of each package? and how I change the colors also I want to add Icon inside the textfiled of the calendar

Upvotes: 0

Views: 120

Answers (1)

Nitesh
Nitesh

Reputation: 508

To know about the package & the properties of a package, you should always check the example tab in pub.dev .

But all the properties of the package might not be mentioned in the example tab, so, you should explore the package to know more.

How can you explore the package :

  • Use your IDE. (For example - If you use VS code you can hover over the definition of the widget/class you are using. By this you can see the properties the widget accepts and try them one by one to understand what they do.)
  • Or you can go the definition of the widget and explore.

Now, if the property you want is not provided by the package, then, you can fork the GitHub of the package on to your Github & edit the package with the changes you need.

Upvotes: 1

Related Questions