File tree Expand file tree Collapse file tree
src/client/gui/lib/vm_table Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ class _TableState<T> extends State<Table<T>> {
5757 int ? sortIndex;
5858
5959 static const borderSide = BorderSide (color: Colors .grey, width: 0.5 );
60+ static const rowHeight = 50.0 ;
6061
6162 @override
6263 void dispose () {
@@ -179,7 +180,7 @@ class _TableState<T> extends State<Table<T>> {
179180 children: [
180181 // Properly styled header row that matches the regular table
181182 SizedBox (
182- height: 50 , // Match table row height
183+ height: rowHeight,
183184 child: Scrollbar (
184185 controller: horizontal,
185186 child: SingleChildScrollView (
@@ -190,7 +191,7 @@ class _TableState<T> extends State<Table<T>> {
190191 for (int i = 0 ; i < widget.headers.length; i++ )
191192 Container (
192193 width: widget.headers[i].width,
193- height: 50 ,
194+ height: rowHeight ,
194195 decoration: const BoxDecoration (
195196 border: Border (
196197 bottom: borderSide,
@@ -217,7 +218,7 @@ class _TableState<T> extends State<Table<T>> {
217218 pinnedRowCount: 1 ,
218219 rowCount: cells.length,
219220 columnCount: widget.headers.length + 1 ,
220- rowBuilder: (_) => const TableSpan (extent: FixedTableSpanExtent (50 )),
221+ rowBuilder: (_) => const TableSpan (extent: FixedTableSpanExtent (rowHeight )),
221222 columnBuilder: (i) => TableSpan (
222223 extent: i == widget.headers.length
223224 ? const RemainingTableSpanExtent ()
You can’t perform that action at this time.
0 commit comments