flutter_login
flutter_login copied to clipboard
[FEATURE] Sign in/up width card and fields
Can we Define / increase the width for long eMail or name ?
As far as I see currently they are hardcoded and:
final cardWidth = min(deviceSize.width * 0.75, 360.0);
const cardPadding = 16.0;
final textFieldWidth = cardWidth - cardPadding * 2;
So the card width is 75%
of the screen (or 360
for big screens) and then the text fields are based on that minus the padding.
It may be feasible to improve that we can pass that (I'd say just cardWidth
, leaving the others calculated from that) in case, but not sure how many users could use that (as 75%
sounds quite reasonable). It would require a couple of info passages (FlutterLogin -> AuthCard -> Login/Signup/Recover cards)
@juliansteenbakker would you see this as an useful improvement?
Sorry for the late response. I think it can be possible just as long as it doesn't mess with the animations.
I'm open for a PR!