-
Notifications
You must be signed in to change notification settings - Fork 271
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
✨ Added input decoration class #153
Conversation
@@ -194,9 +194,6 @@ import 'package:flutter_credit_card/flutter_credit_card.dart'; | |||
expiryDateKey: expiryDateKey, | |||
cardHolderKey: cardHolderKey, | |||
onCreditCardModelChange: (CreditCardModel data) {}, // Required | |||
themeColor: Colors.black, // Required |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add breaking change section in readme.
7984540
to
90fa932
Compare
import 'package:flutter_credit_card/src/utils/constants.dart'; | ||
|
||
class InputConfiguration { | ||
const InputConfiguration({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add documentation comment stating the use of this class.
README.md
Outdated
), | ||
), | ||
``` | ||
|
||
## Breaking Changes in 4.x.x | ||
- `themeColor`, `textColor`, and `cursorColor` have been removed from `CreditCardForm` as it can't detect the application theme. Please check out the example app to learn how to apply those using `Theme`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please mention removal of input decoration fields and how to use in the newer version.
README.md
Outdated
labelText: 'Expired Date', | ||
hintText: 'XX/XX', | ||
), | ||
cvvCodeDecoration: const InputDecoration( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove const
from InputDecoration
widget as it is specified at the parent constructor and thus is not needed.
c5c0804
to
deee088
Compare
CHANGELOG.md
Outdated
- The `cardNumberDecoration`, `expiryDateDecoration`, `cvvCodeDecoration`, and `cardHolderDecoration` | ||
properties are moved to the newly added `InputDecoration` class that also has `textStyle` properties | ||
for all the textFields of the `CreditCardForm`. | ||
- Updated `readme.md` to have migration guide to Version 4.0.0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can remove this.
deee088
to
154d5d9
Compare
No description provided.