use flexbox to scale the list size of widgets in the variable layout