OAuth button fix
This commit is contained in:
@@ -26,7 +26,7 @@ class _LoginPageState extends TbPageState<LoginPage> {
|
|||||||
final ButtonStyle _oauth2ButtonWithTextStyle = OutlinedButton.styleFrom(
|
final ButtonStyle _oauth2ButtonWithTextStyle = OutlinedButton.styleFrom(
|
||||||
padding: EdgeInsets.all(16),
|
padding: EdgeInsets.all(16),
|
||||||
alignment: Alignment.centerLeft,
|
alignment: Alignment.centerLeft,
|
||||||
primary: Colors.black87);
|
foregroundColor: Colors.black87);
|
||||||
|
|
||||||
final ButtonStyle _oauth2IconButtonStyle = OutlinedButton.styleFrom(
|
final ButtonStyle _oauth2IconButtonStyle = OutlinedButton.styleFrom(
|
||||||
padding: EdgeInsets.all(16), alignment: Alignment.center);
|
padding: EdgeInsets.all(16), alignment: Alignment.center);
|
||||||
@@ -296,11 +296,18 @@ class _LoginPageState extends TbPageState<LoginPage> {
|
|||||||
onPressed: () => _oauth2ButtonPressed(client),
|
onPressed: () => _oauth2ButtonPressed(client),
|
||||||
child: icon);
|
child: icon);
|
||||||
} else {
|
} else {
|
||||||
button = OutlinedButton.icon(
|
button = OutlinedButton(
|
||||||
style: _oauth2ButtonWithTextStyle,
|
style: _oauth2ButtonWithTextStyle,
|
||||||
onPressed: () => _oauth2ButtonPressed(client),
|
onPressed: () => _oauth2ButtonPressed(client),
|
||||||
icon: icon,
|
child: Stack(children: [
|
||||||
label: Expanded(child: Text(text, textAlign: TextAlign.center)));
|
Align(alignment: Alignment.centerLeft, child: icon),
|
||||||
|
Container(
|
||||||
|
height: 24,
|
||||||
|
child: Align(
|
||||||
|
alignment: Alignment.center,
|
||||||
|
child: Text(text, textAlign: TextAlign.center)),
|
||||||
|
)
|
||||||
|
]));
|
||||||
}
|
}
|
||||||
if (expand) {
|
if (expand) {
|
||||||
return Expanded(
|
return Expanded(
|
||||||
|
|||||||
Reference in New Issue
Block a user