TF-2101 Add text input field widget with suggestion
(cherry picked from commit c0f7c63c3e1aaeb2ded641e1f99329dd47bd76b8)
This commit is contained in:
+40
@@ -0,0 +1,40 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class TextInputSuggestionFieldWidgetStyles {
|
||||
static const double titleWidth = 112.0;
|
||||
static const double borderRadius = 10.0;
|
||||
static const double borderSize = 1.0;
|
||||
static const double minTextFieldWidth = 40.0;
|
||||
static const double suggestionsBoxElevation = 20.0;
|
||||
static const double suggestionsBoxRadius = 20.0;
|
||||
static const double suggestionsBoxMaxHeight = 350.0;
|
||||
static const double space = 12.0;
|
||||
static const double spaceMobile = 8.0;
|
||||
|
||||
static const EdgeInsetsGeometry padding = EdgeInsets.symmetric(
|
||||
vertical: 8.0
|
||||
);
|
||||
static const EdgeInsetsGeometry contentPadding = EdgeInsetsDirectional.symmetric(
|
||||
vertical: 16.0
|
||||
);
|
||||
static const EdgeInsetsGeometry emptyListContentPadding = EdgeInsetsDirectional.only(
|
||||
top: 16,
|
||||
bottom: 16,
|
||||
start: 12
|
||||
);
|
||||
|
||||
static const EdgeInsets inputFieldPadding = EdgeInsets.symmetric(
|
||||
horizontal: 12.0
|
||||
);
|
||||
|
||||
static const InputBorder border = OutlineInputBorder(
|
||||
borderRadius: BorderRadius.all(Radius.circular(10)),
|
||||
borderSide: BorderSide.none,
|
||||
);
|
||||
|
||||
static const TextStyle inputFieldTextStyle = TextStyle(
|
||||
color: Colors.black,
|
||||
fontSize: 16,
|
||||
fontWeight: FontWeight.w400,
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user