flutter_login icon indicating copy to clipboard operation
flutter_login copied to clipboard

[FEATURE] Sign in/up width card and fields

Open meridorkobi opened this issue 2 years ago • 2 comments

Can we Define / increase the width for long eMail or name ?

meridorkobi avatar Aug 29 '21 08:08 meridorkobi

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?

fedepell avatar Sep 01 '21 06:09 fedepell

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!

juliansteenbakker avatar Nov 04 '21 09:11 juliansteenbakker