Home > OS >  how to make this type textField? (check image)
how to make this type textField? (check image)

Time:09-23

enter image description here

How to make text typed in TextField undeletable? I am fairly new to programming, after looking around I thought that id takes my chances with asking here. I basically need textField like the picture.

CodePudding user response:

Make your text readOnly: true

TextField(
            controller: _controller,
            readOnly: true,
           
          )

CodePudding user response:

Simple way to archive using enter image description here

Code

 DottedBorder(
          color: Colors.grey,
          dashPattern: [2, 3, 2, 3],
          strokeWidth: 1,
          padding: EdgeInsets.all(20),
          child: Text(
            "Basic Maths",
          )),
  • Related