private static Widget ProcessTableClose(Token token, BuilderContext ctx) { var maxColumnCount = ctx.rows.Max(row => row.Count); ctx.rows.ForEach(row => { while (row.Count < maxColumnCount) { var cellContainer = row.Last(); row.Add( new Container( padding: cellContainer.padding, decoration: cellContainer.decoration ) ); } }); var tableRows = ctx.rows.Select(row => new TableRow(children: row.Cast <Widget>().ToList())).ToList(); var table = new Container( margin: EdgeInsets.only(top: 16f, bottom: 24f), child: new Table( border: TableBorder.all( width: 1f, color: new Color(0xffe0e0e0) ), defaultColumnWidth: new FlexColumnWidth(1.0f), children: tableRows ) ); ctx.ClearColumn(); return(table); }