skip to Main Content

Flutter – Floating hint inside the OutlineInputBorder

I am trying to achieve the TextFormField just like the image attached. This is my code currently: @override Widget build(BuildContext context) { return TextFormField( focusNode: _textFieldFocus, controller: widget.controller, decoration: InputDecoration( filled: true, fillColor: _color, prefixIcon: _buildPrefixIcon(), labelText: widget.hintText, hintStyle: context.textStyle.subHeadline.copyWith(color:…

VIEW QUESTION

Flutter – The following StateError was thrown running a test: Bad state: No element

I'm trying to test a button, but it keeps giving this error ═╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════ The following StateError was thrown running a test: Bad state: No element When the exception was thrown, this was the…

VIEW QUESTION
Back To Top
Search