mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 19:17:58 +00:00
@@ -66,7 +66,7 @@ class ButtonOP extends StatelessWidget {
|
|||||||
width: 200,
|
width: 200,
|
||||||
child: Obx(() => ElevatedButton(
|
child: Obx(() => ElevatedButton(
|
||||||
style: ElevatedButton.styleFrom(
|
style: ElevatedButton.styleFrom(
|
||||||
primary: curOP.value.isEmpty || curOP.value == op
|
backgroundColor: curOP.value.isEmpty || curOP.value == op
|
||||||
? primaryColor
|
? primaryColor
|
||||||
: Colors.grey,
|
: Colors.grey,
|
||||||
).copyWith(elevation: ButtonStyleButton.allOrNull(0.0)),
|
).copyWith(elevation: ButtonStyleButton.allOrNull(0.0)),
|
||||||
@@ -74,17 +74,21 @@ class ButtonOP extends StatelessWidget {
|
|||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: 30,
|
width: 30,
|
||||||
child: _IconOP(
|
child: _IconOP(
|
||||||
op: op,
|
op: op,
|
||||||
icon: icon,
|
icon: icon,
|
||||||
margin: EdgeInsets.only(right: 5),
|
margin: EdgeInsets.only(right: 5),
|
||||||
)),
|
),
|
||||||
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: FittedBox(
|
child: FittedBox(
|
||||||
fit: BoxFit.scaleDown,
|
fit: BoxFit.scaleDown,
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Text('${translate("Continue with")} ${toCapitalized(op)}')))),
|
child: Text(
|
||||||
|
'${translate("Continue with")} ${op.toLowerCase() == "github" ? "GitHub" : toCapitalized(op)}')),
|
||||||
|
),
|
||||||
|
),
|
||||||
],
|
],
|
||||||
))),
|
))),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user