Page Install. Reset styles for input field.

This commit is contained in:
grummbeer 2023-06-05 13:03:58 +02:00
parent ba12c50dc1
commit a029bd9a92

View File

@ -101,10 +101,6 @@ class _InstallPageBodyState extends State<_InstallPageBody>
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(Radius.circular(button_radius)), borderRadius: BorderRadius.all(Radius.circular(button_radius)),
)); ));
final inputBorder = OutlineInputBorder(
borderRadius: BorderRadius.zero,
borderSide:
BorderSide(color: isDarkTheme ? Colors.white70 : Colors.black12));
final textColor = isDarkTheme ? null : Colors.black87; final textColor = isDarkTheme ? null : Colors.black87;
final dividerColor = isDarkTheme ? Colors.white70 : Colors.black87; final dividerColor = isDarkTheme ? Colors.white70 : Colors.black87;
return Scaffold( return Scaffold(
@ -123,30 +119,23 @@ class _InstallPageBodyState extends State<_InstallPageBody>
), ),
Row( Row(
children: [ children: [
Text('${translate('Installation Path')}: '), Text('${translate('Installation Path')}:')
.marginOnly(right: 10),
Expanded( Expanded(
child: TextField( child: TextField(
controller: controller, controller: controller,
readOnly: true, readOnly: true,
style: TextStyle( decoration: InputDecoration(
fontSize: 1.5 * em, fontWeight: FontWeight.w400), contentPadding: EdgeInsets.all(0.75 * em),
decoration: InputDecoration( ),
isDense: true, ).marginOnly(right: 10),
contentPadding: EdgeInsets.all(0.75 * em), ),
enabledBorder: inputBorder,
border: inputBorder,
focusedBorder: inputBorder,
constraints: BoxConstraints(maxHeight: 3 * em),
),
)),
Obx(() => OutlinedButton( Obx(() => OutlinedButton(
onPressed: onPressed: btnEnabled.value ? selectInstallPath : null,
btnEnabled.value ? selectInstallPath : null, style: buttonStyle,
style: buttonStyle, child: Text(translate('Change Path'),
child: Text(translate('Change Path'), style: TextStyle(
style: TextStyle( color: textColor, fontSize: btnFontSize))))
color: textColor, fontSize: btnFontSize)))
.marginOnly(left: em))
], ],
).marginSymmetric(vertical: 2 * em), ).marginSymmetric(vertical: 2 * em),
InkWell( InkWell(