Dimension of textForm Field via ThemeData



  • I can't figure out how to change the size of the print. TextFormFieldThemeData

    Mine. main.dart

    void main() {
        runApp(MaterialApp(
        home: MapPage(),
        theme: ThemeData
        (
          inputDecorationTheme:
            InputDecorationTheme
            (
              labelStyle:
                TextStyle
                (
                  fontSize: 30.0,
                ),
              filled: true,
              fillColor: Colors.black12,
              border: OutlineInputBorder()
            )
        ),
      ));
    }
    

    I understand correctly that text in TextForm Field is in charge. labelStyle? I don't change the size of the print.



  • https://api.flutter.dev/flutter/material/InputDecorationTheme/labelStyle.html He's asking for tags for an empty field. If the field is filled, the style shall be applied https://api.flutter.dev/flutter/material/InputDecorationTheme/floatingLabelStyle.html ♪




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2