forked from eatvio/eatvio_app
feat: automatic capitalization
This commit is contained in:
@@ -16,6 +16,7 @@ class CustomSearchBar extends StatelessWidget {
|
||||
height: 40,
|
||||
width: width ?? MediaQuery.of(context).size.width - 84,
|
||||
child: TextFormField(
|
||||
textCapitalization: TextCapitalization.sentences,
|
||||
controller: searchController,
|
||||
autofocus: false,
|
||||
style: TextStyle(
|
||||
|
||||
@@ -107,6 +107,7 @@ class CustomTextFormField extends StatelessWidget {
|
||||
maxLines: maxLines,
|
||||
initialValue: initialValue,
|
||||
cursorColor: appTheme.blueA400,
|
||||
textCapitalization: TextCapitalization.sentences,
|
||||
decoration: InputDecoration(
|
||||
counter: counter,
|
||||
suffixText: suffixText,
|
||||
|
||||
@@ -88,6 +88,7 @@ class _BlogPostScreenState extends State<BlogPostScreen> {
|
||||
child: ConstrainedBox(
|
||||
constraints: BoxConstraints(minHeight: 52),
|
||||
child: TextFormField(
|
||||
textCapitalization: TextCapitalization.sentences,
|
||||
onChanged: (_) {
|
||||
setState(() {});
|
||||
},
|
||||
|
||||
@@ -336,6 +336,7 @@ class _ChatScreenState extends State<ChatScreen> {
|
||||
height: 40,
|
||||
child: TextFormField(
|
||||
expands: true,
|
||||
textCapitalization: TextCapitalization.sentences,
|
||||
controller: textEditingController,
|
||||
maxLines: null,
|
||||
minLines: null,
|
||||
|
||||
@@ -81,6 +81,7 @@ class ChatSearchBarWidget extends StatelessWidget {
|
||||
searchViewWidget(BuildContext context) => SizedBox(
|
||||
width: width ?? MediaQuery.of(context).size.width,
|
||||
child: TextFormField(
|
||||
textCapitalization: TextCapitalization.sentences,
|
||||
controller: controller,
|
||||
focusNode: focusNode,
|
||||
onTapOutside: (event) => onTapOutside(),
|
||||
|
||||
@@ -116,6 +116,7 @@ class _DietPreviewScreenState extends State<DietPreviewScreen> {
|
||||
Expanded(
|
||||
child: SizedBox(
|
||||
child: TextFormField(
|
||||
textCapitalization: TextCapitalization.sentences,
|
||||
onChanged: (_) {
|
||||
setState(() {});
|
||||
},
|
||||
|
||||
@@ -221,6 +221,7 @@ class _AboutDietScreenState extends State<AboutDietScreen> {
|
||||
child: ConstrainedBox(
|
||||
constraints: BoxConstraints(minHeight: 52),
|
||||
child: TextFormField(
|
||||
textCapitalization: TextCapitalization.sentences,
|
||||
onChanged: (_) {
|
||||
setState(() {});
|
||||
},
|
||||
|
||||
@@ -291,6 +291,7 @@ class _AboutPlanScreenState extends State<AboutPlanScreen> {
|
||||
child: ConstrainedBox(
|
||||
constraints: BoxConstraints(minHeight: 52),
|
||||
child: TextFormField(
|
||||
textCapitalization: TextCapitalization.sentences,
|
||||
onChanged: (_) {
|
||||
setState(() {});
|
||||
},
|
||||
|
||||
@@ -151,6 +151,7 @@ class _AboutRecipeScreenState extends State<AboutRecipeScreen> {
|
||||
child: ConstrainedBox(
|
||||
constraints: BoxConstraints(minHeight: 52),
|
||||
child: TextFormField(
|
||||
textCapitalization: TextCapitalization.sentences,
|
||||
onChanged: (_) {
|
||||
setState(() {});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user