Skip to content

Commit

Permalink
imp: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
juliansteenbakker committed Jun 28, 2021
1 parent 3b0b595 commit bd77b1c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 27 deletions.
2 changes: 1 addition & 1 deletion lib/src/widgets/auth_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -349,4 +349,4 @@ class AuthCardState extends State<AuthCard> with TickerProviderStateMixin {
},
);
}
}
}
51 changes: 25 additions & 26 deletions lib/src/widgets/login_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -373,34 +373,33 @@ class _LoginCardState extends State<_LoginCard> with TickerProviderStateMixin {
Widget _buildProvidersLogInButton(ThemeData theme, LoginMessages messages,
Auth auth, LoginTheme loginTheme) {
return Row(
mainAxisAlignment: MainAxisAlignment.center,
children: auth.loginProviders.map((loginProvider) {
var index = auth.loginProviders.indexOf(loginProvider);
return Padding(
padding: loginTheme.providerButtonPadding ??
const EdgeInsets.symmetric(horizontal: 6.0, vertical: 8.0),
child: ScaleTransition(
scale: _buttonScaleAnimation,
child: Column(
children: [
AnimatedIconButton(
icon: loginProvider.icon,
controller: _providerControllerList[index],
tooltip: '',
onPressed: () => _loginProviderSubmit(
control: _providerControllerList[index],
callback: () {
return loginProvider.callback();
},
mainAxisAlignment: MainAxisAlignment.center,
children: auth.loginProviders.map((loginProvider) {
var index = auth.loginProviders.indexOf(loginProvider);
return Padding(
padding: loginTheme.providerButtonPadding ??
const EdgeInsets.symmetric(horizontal: 6.0, vertical: 8.0),
child: ScaleTransition(
scale: _buttonScaleAnimation,
child: Column(
children: [
AnimatedIconButton(
icon: loginProvider.icon,
controller: _providerControllerList[index],
tooltip: '',
onPressed: () => _loginProviderSubmit(
control: _providerControllerList[index],
callback: () {
return loginProvider.callback();
},
),
),
),
Text(loginProvider.label)
],
Text(loginProvider.label)
],
),
),
),
);
}).toList()
);
);
}).toList());
}

Widget _buildProvidersTitle(LoginMessages messages) {
Expand Down

0 comments on commit bd77b1c

Please sign in to comment.