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 change font size for title #19

Closed
serahzaveri opened this issue Aug 10, 2020 · 7 comments
Closed

how to change font size for title #19

serahzaveri opened this issue Aug 10, 2020 · 7 comments

Comments

@serahzaveri
Copy link

serahzaveri commented Aug 10, 2020

I'm having trouble changing the font size of the title. I tried changing the font size of the modal header but that does not change the font size of the title.
Any help will be really appreciated. Thanks.

Padding(
padding: const EdgeInsets.only(top: 35.0),
child: SmartSelect.single(
title: "House Type", //i want to change the font size of this on the form
value: this._houseType,
options: options.houseType,
onChange: (val) => setState(() => this._houseType = val),
modalType: SmartSelectModalType.bottomSheet,
modalConfig: SmartSelectModalConfig(
headerStyle: SmartSelectModalHeaderStyle(
textStyle: TextStyle(
fontSize: 28.0
)
)
)
),
),

@Katekko
Copy link

Katekko commented Aug 17, 2020

I wanna change the color, but I don't know how...

@heypran
Copy link

heypran commented Aug 23, 2020

@serahzaveri @Katekko
I am facing the same issue... but I found a way, Change the title style for class SmartSelectTile extends StatelessWidget in the package code.

But then packages are stored in cache and this will be removed if other people will setup the project. as package will be installed from flutter pub repository.

A good solution is to expose it and make it configurable similar to SmartSelectModalConfig but I dont know how to do that.

@davigmacode i believe you can guide me on this, I will create a PR.

@heypran
Copy link

heypran commented Aug 24, 2020

@serahzaveri @Katekko
I am facing the same issue... but I found a way, Change the title style for class SmartSelectTile extends StatelessWidget in the package code.

But then packages are stored in cache and this will be removed if other people will setup the project. as package will be installed from flutter pub repository.

A good solution is to expose it and make it configurable similar to SmartSelectModalConfig but I dont know how to do that.

@davigmacode i believe you can guide me on this, I will create a PR.

I made the changes need sometime to test and create a PR

@davigmacode
Copy link
Owner

I'm having trouble changing the font size of the title. I tried changing the font size of the modal header but that does not change the font size of the title.
Any help will be really appreciated. Thanks.

Padding(
padding: const EdgeInsets.only(top: 35.0),
child: SmartSelect.single(
title: "House Type", //i want to change the font size of this on the form
value: this._houseType,
options: options.houseType,
onChange: (val) => setState(() => this._houseType = val),
modalType: SmartSelectModalType.bottomSheet,
modalConfig: SmartSelectModalConfig(
headerStyle: SmartSelectModalHeaderStyle(
textStyle: TextStyle(
fontSize: 28.0
)
)
)
),
),

Hi @serahzaveri, I apologize for this long response.
Please upgrade to the latest 4.x.x.

Change the configuration to

Padding(
  padding: const EdgeInsets.only(top: 35.0),
  child: SmartSelect.single(
    title: "House Type",
    value: this._houseType,
    onChange: (state) => setState(() => this._houseType = state.value),
    choiceItems: options.houseType,
    modalType: S2ModalType.bottomSheet,
    modalHeaderStyle: S2ModalHeaderStyle(
      textStyle: TextStyle(
        fontSize: 28.0
      ),
    ),
  ),
),

Please reopen this issue if it still fails.

Thanks

@davigmacode
Copy link
Owner

I wanna change the color, but I don't know how...

Hi @Katekko, what color? can be more specific?

@davigmacode
Copy link
Owner

@serahzaveri @Katekko
I am facing the same issue... but I found a way, Change the title style for class SmartSelectTile extends StatelessWidget in the package code.

But then packages are stored in cache and this will be removed if other people will setup the project. as package will be installed from flutter pub repository.

A good solution is to expose it and make it configurable similar to SmartSelectModalConfig but I dont know how to do that.

@davigmacode i believe you can guide me on this, I will create a PR.

Hi @heypran, I have responded to the pull request

Thanks

@vasilich6107
Copy link

I released https://pub.dev/packages/flutter_awesome_select with fixed null safety.
Could you check that everything works for you?

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

Successfully merging a pull request may close this issue.

5 participants