Leondev7 / flutter_fab_dialer

Floating action button dialer
BSD 3-Clause "New" or "Revised" License
67 stars 31 forks source link

Allow styling of the chip text #14

Open abinmittu opened 5 years ago

abinmittu commented 5 years ago

Now by default the chip text has properties like fontWeight bold. Instead of accepting plain string as "text" property, if it was a Text widget, user could have easily customized the chip text for their needs.

Something like this:

FabMiniMenuItem.withText(
        Icon(Icons.photo_camera),
        Colors.blue,
        4.0,
        Text("Add Photo", style: TextStyle(fontSize: 12.0, fontWeight: FontWeight.w400),)
        _addPhoto,
        "Add Photo",
        Colors.blue,
        Colors.white,
        true
    )
Leondev7 commented 5 years ago

Thanks for the idea. I'm currently testing it to see how it works. I'll probably upload it this weekend