skip to Main Content

select a button and deselect button flutter

How to make deselect and select button like in the photo above. Here is my code. Widget buttonRow(String dateTime, bool verticalLine, int buttonNumber) { return InkWell( onTap: (){ print('select-deSelect'); }, child: Container( height: 50, child: Column( mainAxisAlignment: MainAxisAlignment.spaceEvenly, // crossAxisAlignment:…

VIEW QUESTION

flutter GestureDetector swipe while onlongPress

a button should be long pressed to record something. If during the long press a swipe is detected the record should be deleted. I tried to combine onLongPressStart/End with onPanUpdate, but it doesn't work GestureDetector( child: Icon(Icons.mic_none_outlined), onLongPressStart: (_) async…

VIEW QUESTION

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