Intrinsic Height Widget With Button Longer
Complete Code For Intrinsic Height Widget With Button Longer In Flutter
main.dart
import 'package:flutter/material.dart'; void main() => runApp(new MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( debugShowCheckedModeBanner: false, home: MyHomePage(), ); } } class MyHomePage extends StatefulWidget { @override State<StatefulWidget> createState() => MyHomePageState(); } class MyHomePageState extends State<MyHomePage> with SingleTickerProviderStateMixin { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( backgroundColor: Colors.blue[900], title: Text("Intrinsic Height Widget")), body: Row( crossAxisAlignment: CrossAxisAlignment.stretch, children: <Widget>[ RaisedButton( onPressed: () {}, child: Text('Short'), ), RaisedButton( onPressed: () {}, child: Text('A bit Longer'), ), Flexible( child: RaisedButton( onPressed: () {}, child: Text('The Longest text button'), ), ), ], ), ); } }