Insert a Row inside a Column in Flutter

this should solve your problem, var phoneNumber = new Row( mainAxisSize: MainAxisSize.min, children: <Widget>[ Expanded( child: new Padding( padding: const EdgeInsets.all(20.0), child: countryCodePicker, ), ), Expanded( child: new Padding( padding: const EdgeInsets.all(20.0), child: mobileNumber, ), ), ], ); hope it helps!

How to specify ListTile height in Flutter

Applying VisualDensity allows you to expand or contract the height of list tile. VisualDensity is compactness of UI elements. Here is an example: // negative value to contract ListTile( title: Text(‘Tile title’), dense: true, visualDensity: VisualDensity(vertical: -3), // to compact onTap: () { // tap actions }, ) // positive value to expand ListTile( title: … Read more

Show alert dialog on app main screen load automatically in flutter

You have to wrap the content inside another Widget (preferably Stateless). Example: Change From: import ‘package:flutter/material.dart’; void main() { runApp(new MyApp()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: ‘Trial’, home: Scaffold( appBar: AppBar(title: Text(‘List scroll’)), body: Container( child: Text(“Hello world”), ))); } } to this: import ‘dart:async’; import … Read more

How to make rounded border for dropdownbutton in flutter?

With the form field variant, you can use the OutlineInputBorder InputBorder, used normally for input text fields: DropdownButtonFormField( … decoration: const InputDecoration( border: OutlineInputBorder(), ), ), The way the form field does this can be replicated and used with the regular DropdownButton: InputDecorator( decoration: const InputDecoration(border: OutlineInputBorder()), child: DropdownButtonHideUnderline( child: DropdownButton( … ), ), ),

How to add line dash in Flutter

As a workaround, in your case, you can do something like this class MySeparator extends StatelessWidget { const MySeparator({Key? key, this.height = 1, this.color = Colors.black}) : super(key: key); final double height; final Color color; @override Widget build(BuildContext context) { return LayoutBuilder( builder: (BuildContext context, BoxConstraints constraints) { final boxWidth = constraints.constrainWidth(); const dashWidth = … Read more