|
@@ -3,6 +3,7 @@ import 'package:flutter/material.dart';
|
|
//This method returns a newly declared list with separators. It will not
|
|
//This method returns a newly declared list with separators. It will not
|
|
//modify the original list
|
|
//modify the original list
|
|
List<Widget> addSeparators(List<Widget> listOfWidgets, Widget separator) {
|
|
List<Widget> addSeparators(List<Widget> listOfWidgets, Widget separator) {
|
|
|
|
+ listOfWidgets.removeWhere((element) => (element is SizedBox));
|
|
final int initialLength = listOfWidgets.length;
|
|
final int initialLength = listOfWidgets.length;
|
|
final listOfWidgetsWithSeparators = <Widget>[];
|
|
final listOfWidgetsWithSeparators = <Widget>[];
|
|
listOfWidgetsWithSeparators.addAll(listOfWidgets);
|
|
listOfWidgetsWithSeparators.addAll(listOfWidgets);
|