fix: limit template name length to 100 characters

This commit is contained in:
Freek van de Ven 2024-07-26 14:29:21 +02:00 committed by FlutterJoey
parent c6df93e40b
commit 3ae1ad417e

View file

@ -36,10 +36,12 @@ class TemplateNameInput extends StatelessWidget {
decoration: InputDecoration( decoration: InputDecoration(
hintText: translations.templateTitleHintText, hintText: translations.templateTitleHintText,
hintStyle: theme.inputDecorationTheme.hintStyle, hintStyle: theme.inputDecorationTheme.hintStyle,
counterText: "",
border: OutlineInputBorder( border: OutlineInputBorder(
borderRadius: BorderRadius.circular(10), borderRadius: BorderRadius.circular(10),
), ),
), ),
maxLength: 100,
initialValue: initialValue, initialValue: initialValue,
style: options.textStyles.inputFieldTextStyle, style: options.textStyles.inputFieldTextStyle,
onChanged: onNameChanged, onChanged: onNameChanged,