I have create a simple UI and added vertical divider, that divider not showing, i have tried so many ways, finally i have resolved this issue. There is two ways to resolve the vertical divider not showing issue by Example with IntrinsicHeight Example with VerticalDivider
IntrinsicHeight(
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Icon(Icons.menu,color: AppColors.technoBlack,),
SizedBox(width: 5.w,),
Expanded(child: TextField(
style: TextStyle(fontSize: 16.sp,color: AppColors.technoBlack,fontWeight: FontWeight.w300),
decoration: InputDecoration(
hintText: "Your Current Location",
focusedBorder: InputBorder.none,
),)),
SizedBox(width: 5.w,),
VerticalDivider(color: AppColors.technoBlack,thickness: 2),
SizedBox(width: 5.w,),
Icon(Icons.filter_tilt_shift,color: AppColors.technoBlack,),
],),
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Icon(Icons.menu,color: AppColors.technoBlack,),
SizedBox(width: 5.w,),
Expanded(child: TextField(
style: TextStyle(fontSize: 16.sp,color: AppColors.technoBlack,fontWeight: FontWeight.w300),
decoration: InputDecoration(
hintText: "Your Current Location",
focusedBorder: InputBorder.none,
),)),
SizedBox(width: 5.w,),
SizedBox(child: VerticalDivider(color: AppColors.technoBlack,thickness: 2,),height: 30,),
SizedBox(width: 5.w,),
Icon(Icons.filter_tilt_shift,color: AppColors.technoBlack,),
],),
How to display snackbar infinite duration in a flutter application
How to check the given value is a number or not in dart?
How to find the Screen orientation in flutter
How to deactivate back button in flutter?
How to copy text from Text Widget flutter?
How to make shadow for Container widget Flutter?
How to convert a String value to double in flutter?
How to change package name in flutter?
What is Flutter?
How to create Gradient background for AppBar in Flutter
How do i make CachedNetwork image as rounded circle in flutter?
How to Close Flutter application Programmatically?
OS Error: A required privilege is not held by the client errno = 1314
How to handle the code after showDialog is dismissed in Flutter?
How to handle Scaffold.of() called with a context that does not contain a Scaffold exception?
Flutter Questions and Answers
How can i use hexadecimal color code in Flutter?
How to set the TextFormField/TextField border color
How to fix Flutter Bottom OverFlowed error A RenderFlex overflowed by XX pixels on the bott
How to fix Flutter: error:MissingPluginException(No implementation found for method)
How can i get document id in Flutter Firestore?
How to remove Yellow lines under Text Widgets in Flutter?
How do I supply/set an initial value to a text field in Flutter ?
Can we use Container color and decoration properties at once?
How do i make TextButton full width in flutter?
How to remove debug banner in flutter?
Cannot run with sound null safety because dependencies don't support null safety, I have receive
How do we save the data in browser's cookies using the Flutter web?
What corresponds to Intent in Flutter?
Flutter - Vertical Divider - How to add Vertical Divider?
How to navigate to new screen without back screen
How does Flutter load images?
How do I open a web browser (URL) from my Flutter code?
How to make a widget Center vertically inside a SingleChildScrollView
How to create Toast in Flutter?
Error : MediaQuery.of() called with a context that does not contain a MediaQuery No MediaQuery ances
Navigator operation requested with a context that does not include a Navigator.
Vertical Divider is Not Showing in my Flutter Application
How to change the application launcher icon on Flutter?
How do i make circular icon Inside Button ?