In this article, I will explain how to implement Flutter textfield remove underline, what it means, its role in Flutter textfield and how to remove the underline from the Flutter textfield. I will be implementing Flutter textfield remove underline step by step so you have a complete and clear idea of how to remove that default underline from the Flutter textfield. So let’s not waste your time and get right into implementing Flutter textfield remove underline in Flutter textfield.
Outline
- What is Flutter Textfield Remove Underline?
- Default Flutter Textfield Style
- Implementing Flutter Textfield Remove Underline Border
- Beautiful Flutter Textfield Source Code
- Conclusion
What is Flutter Textfield Remove Underline?
In this post, I will be implementing Flutter textfield remove underline only. If you are interested in changing other properties of Flutter textfield as well then you can click here. Now let’s understand Flutter textfield remove underline. It is the underline border that you can see when you implement a simple Flutter textfield. Let’s now start implementing it using a proper example code.
Default Flutter Textfield Style
Let’s implement a simple Flutter textfield and see how it looks.
TextField()

Implementing Flutter Textfield Remove Underline Border
To remove the Flutter textfield underline border, you have to use the decoration constructor of the Flutter textfield. I have passed the input decoration class to the decoration constructor and by using the border constructor of the input decoration class, you can remove the underline border of the Flutter textfield. Let’s implement Flutter textfield remove underline using code:
TextField( decoration: InputDecoration( border: InputBorder.none, filled: true, fillColor: Colors.blue.shade100), )

Beautiful Flutter Textfield Source Code
import 'package:flutter/material.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({Key? key}) : super(key: key); @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, home: Homepage(), ); } } class Homepage extends StatefulWidget { @override State<Homepage> createState() => _HomepageState(); } class _HomepageState extends State<Homepage> { @override Widget build(BuildContext context) { return SafeArea( child: Scaffold( body: Center( child: Padding( padding: EdgeInsets.symmetric(horizontal: 40), child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ TextField( style: TextStyle(color: Colors.grey), cursorColor: Colors.grey, decoration: InputDecoration( border: InputBorder.none, filled: true, fillColor: Colors.grey.withOpacity(.08), prefixIcon: Icon( Icons.email, color: Colors.grey, ), suffixIcon: Icon( Icons.visibility, color: Colors.grey, ), labelText: 'Enter your email', labelStyle: TextStyle(color: Colors.grey.withOpacity(.8)), enabledBorder: OutlineInputBorder( borderSide: BorderSide(color: Colors.grey), borderRadius: BorderRadius.circular(30).copyWith( bottomRight: Radius.circular(0), topLeft: Radius.circular(0))), focusedBorder: OutlineInputBorder( borderSide: BorderSide(color: Colors.grey), borderRadius: BorderRadius.circular(30).copyWith( bottomRight: Radius.circular(0), topLeft: Radius.circular(0)))), ) ], ))), )); } }
Conclusion
In conclusion, now you have learnt how to implement Flutter textfield remove underline. Implement it in your Flutter application and let me know if you have any queries in the comment section. I’d be glad to see your feedback. I would love to see you in my other articles on Flutter app development and many more, links are given below. That’s all for this blog post. Thanks for reading it.
Flutter app articles you might like to read: beautiful gradient login UI, Dart Vs JavaScript, flutter login UI form, flutter basics for beginners, explanation of widgets in flutter, flutter architecture, flutter vs native, flutter sliverappbar customization, mobile app marketing tips, flutter bottom navigation bar, flutter appbar actions, flutter appbar title center, why learn react native framework, react native jobs, react native elements, unique flutter development.
You might also like:
How To Customize Flutter Textformfield KeyboardType?
How To Change Flutter Textfield Underline Color
Amazing Asus Rog Strix Scar 15 Gaming Laptop 2022
Amazing Flutter Dart Book-Full Stack Application Development For Cloud(1st Edition)
Amazing Dart Programming Language Book For Beginners(1st Edition)
Best Python Programming Guide-Beginners Guide To Learn Python In 7 Days
Best Programming Python Book For Developers(2nd Edition)
Best Python Book Guide For Developers(3rd Edition)
Best Python Programming Exercises Book From Beginner To Advanced(5th Edition)
Best Python Crash Course Book(2nd Edition)-Project Based Introduction To Programming
Best JavaScript and JQuery Book For Frontend Web Developers
Best React Native Book-Start Developing Hybrid Apps
Flutter Textfield Onchanged Explained With Example-Best Flutter Guide
Flutter Textfield Maxlength Detailed Explanation With Example-Best Flutter Guide
Flutter Textfield Border Radius Explained With Example-Best Flutter Guide
Flutter Textfield Decoration Detailed Explanation With Example-Flutter Guide 2022
How To Change Flutter Textfield Border Color-2022 Guide
Flutter Textfield Align Center With Example-2022 Guide
How To Change Flutter Textfield Color-2022 Guide
Flutter App Development Cookbook: Over 100 Techniques And Solutions For Hybrid App Development
How to Choose the Right React Native Elements for Your Next App- 2022 Guide
Why Should I learn React Native Framework In 2022
Flutter App Development In 2022: Future of Mobile App Development?
Flutter App Development In 2022: Future of Mobile App Development?
How to make your first app with flutter?
Hero Animations In Flutter App With Example-Beautiful Flutter Animations In Dart Language
Flutter Vs Android Studio: Which Is Better For You In 2022?
Flutter App Framework: The Future of Mobile App Development 2022?
Top Benefits Of Using Flutter Mobile App Development In 2022
How To Customize Flutter Container Border? 2022 Guide
Top Secrets About Flutter Development Kit-2022 Guide
Beautiful Bottom Navigation Bar In Flutter App-Android And Flutter IOS-Dart Flutter
ListView Builder In Flutter Apps
How To Design Beautiful AppBar in Flutter
How To Use Rows In Flutter Apps
What’s New in Flutter 2.10 release?
How To Use Columns In Flutter Apps
How To Use Beautiful Lottie Animations In Flutter App
Flutter Range Slider Beautiful Customization With Example | Syncfusion
Flutter Carousel Slider Beautiful Customization With Example
Flutter Glassmorphism Login UI Template With Source Code
Hero Animations In Flutter App With Example-Beautiful Flutter Animations In Dart Language