I'm trying to implement a transparent TextField (I'm copying the instagram story editor UI). However I'm getting a TextField with a background color of white. How can I remove the white background and make the TextField transparent?
Here is my code:
@override
Widget build(BuildContext context) {
return Stack(
children: [
GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: widget.onTap,
child: Container(
color: Colors.black.withOpacity(0.5),
),
),
Center(
child: Material(
child: Container(
color: Colors.transparent,
child: TextField(
focusNode: myFocusNode,
cursorColor: Colors.blueAccent,
decoration: InputDecoration(
fillColor: Colors.transparent,
filled: true,
border: InputBorder.none,
contentPadding: EdgeInsets.only(
left: 15,
bottom: 11,
top: 11,
right: 15,
),
),
),
),
),
)
Here is the result of the code above: 
Here is I want it to look like: 
Update:
Removing Material widget and Container widget and adding Scaffold on the top solved the problem ❤️
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.transparent,
body: Stack(
children: [
GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: widget.onTap,
child: Container(
color: Colors.black.withOpacity(0.5),
),
),
Center(
child: TextField(
focusNode: myFocusNode,
cursorColor: Colors.blueAccent,
decoration: InputDecoration(
fillColor: Colors.transparent,
filled: true,
border: InputBorder.none,
contentPadding: EdgeInsets.only(
left: 15,
bottom: 11,
top: 11,
right: 15,
),
),
),
)
],
),
);
}