How can Widget Classes Arguments be used as props to create dynamic Widgets with Row and Columns in Flutter?

Advertisements I am revisiting Flutter development after working with React after some times and I was trying to implement something as passing props across multiple components, in order to create dynamic Widgets (components) that render based on props. I could somehow achieve the result but still I cannot understand something. So, in this example, I… Read More How can Widget Classes Arguments be used as props to create dynamic Widgets with Row and Columns in Flutter?

How to use widget lists in ListView.builder?

Advertisements class CardPage extends StatelessWidget { String title; String description; CardPage({Key key,this.title,this.description}) : super(key: key); @override Widget build(BuildContext context) { final ThemeData themeData = Theme.of(context); return Container( height: (108), child: Card( semanticContainer: true, clipBehavior: Clip.antiAliasWithSaveLayer, child: ElevatedButton( onPressed: () {}, style: ElevatedButton.styleFrom( primary: Colors.white54, ), child: ListTile( title: Text(title, style: themeData.textTheme.headline2), trailing: Padding( padding: const… Read More How to use widget lists in ListView.builder?

OutlinedButton exception when trying to set max size

Advertisements I’m trying to create something like the below image: I used two OutlinedButton in a row: Row( mainAxisAlignment: MainAxisAlignment.start, children: <Widget>[ OutlinedButton( child: const Icon( Icons.arrow_back, color: colorBackButton, ), style: ButtonStyle( fixedSize: MaterialStateProperty.resolveWith( (states) => Size(65.0, 65.0)))), Padding(padding: EdgeInsets.only(left: 14.0)), OutlinedButton( child: Text( ‘Next’, style: GoogleFonts.inter( textStyle: const TextStyle( fontSize: 20, fontWeight: FontWeight.bold, color:… Read More OutlinedButton exception when trying to set max size