The main goal of this PR was to remove the Theme used in the form widget which was not supposed to be there. If you want to have a portion of your app, or a widget such as this one have specific styles you should be able to wrap it with a Theme and pass it whatever theme you'd like. That's what a MaterialApp does, it wraps your whole app.
This package however decided to wrap the form with its own theme and copying only a variant of the primary color, this made it impossible to cascade styles and locked you into the author choice, which is not ideal, since many color from the material color scheme were wrong.
Additional fixes.
Used material 3 typography
Fixed chip icon which had a weird artifact in the middle which was removed.
Fixed aspect ratio
Fixed some spacing issues in the card widget
Replaced bankName with title, a Widget instead of a simple String
Removed unnecessary logic for aspect ratio and used flutter AspectRatio widget
Removed usage of an hard coded font as it will now inherit whatever is the closest font family in the context tree. Feel free to use Halter by wrapping the widget with your DefaultTextStyle(), Theme and the likes. This is more versatile and does not require the client to download an additional font.
Note: there is a lot of unused code in the package, eg the localized class thing.
This is a breaking change PR.
The main goal of this PR was to remove the
Theme
used in the form widget which was not supposed to be there. If you want to have a portion of your app, or a widget such as this one have specific styles you should be able to wrap it with aTheme
and pass it whatever theme you'd like. That's what aMaterialApp
does, it wraps your whole app.This package however decided to wrap the form with its own theme and copying only a variant of the primary color, this made it impossible to cascade styles and locked you into the author choice, which is not ideal, since many color from the material color scheme were wrong.
Additional fixes.
bankName
withtitle
, a Widget instead of a simple StringAspectRatio
widgetRemoved usage of an hard coded font as it will now inherit whatever is the closest font family in the context tree. Feel free to use
Halter
by wrapping the widget with yourDefaultTextStyle()
,Theme
and the likes. This is more versatile and does not require the client to download an additional font.Note: there is a lot of unused code in the package, eg the localized class thing.