Widgets portray what their view ought to resemble given their present design and state. ![]() To construct any application, we start with widgets The building square of flutter applications. Style: TextStyle(fontWeight: FontWeight. ConstrainedBox ( constraints: BoxConstraints.expand ( width: MediaQuery.of (context).size.width ), child: DataTable ( // inside dataTable widget you must have columns and rows. F lutter is Google’s UI tool stash for making excellent, natively compiled iOS and Android applications from a single code base. ![]() Better than using Container as per the accepted answer, use ConstrainedBox so that the cell size will only increase if the contents is equal to or exceeds the constrained width.
0 Comments
Leave a Reply. |