mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-24 12:29:37 +00:00
25 lines
936 B
Dart
25 lines
936 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:stackwallet/utilities/text_styles.dart';
|
|
import 'package:stackwallet/utilities/theme/stack_theme.dart';
|
|
import 'package:stackwallet/utilities/util.dart';
|
|
|
|
InputDecoration standardInputDecoration(
|
|
String? labelText, FocusNode textFieldFocusNode) {
|
|
final isDesktop = Util.isDesktop;
|
|
|
|
return InputDecoration(
|
|
labelText: labelText,
|
|
fillColor: textFieldFocusNode.hasFocus
|
|
? StackTheme.instance.color.textFieldActiveBG
|
|
: StackTheme.instance.color.textFieldDefaultBG,
|
|
labelStyle:
|
|
isDesktop ? STextStyles.desktopTextFieldLabel : STextStyles.fieldLabel,
|
|
hintStyle:
|
|
isDesktop ? STextStyles.desktopTextFieldLabel : STextStyles.fieldLabel,
|
|
enabledBorder: InputBorder.none,
|
|
focusedBorder: InputBorder.none,
|
|
errorBorder: InputBorder.none,
|
|
disabledBorder: InputBorder.none,
|
|
focusedErrorBorder: InputBorder.none,
|
|
);
|
|
}
|