List

VelocityX includes the pre-build Ordered and Unordered list which can be used directly in the application to list different widgets.

Above shows examples of the VxDiskList and the VxDecimalList widgets respectively.

VxDiscList class

VxDiscList is a pre-build widget which will allow you to create unordered bulleted (disc) list.

Widget build(BuildContext context) {
return VxDiscList([
"Flutter",
"VelocityX",
"Dart",
"Fuschia"
]);

Above code displays all the list with the disc before label

VxDiscList Constructor

const VxDiscList(
this._items, {
Key key,
this.padding,
this.color = Colors.black,
this.fontSize = 14.0,
this.primary = false,
})

VxDiscList Properties

  • Key key : Controls how one widget replaces another widget in the tree.

  • List<String> _items : The String to displyed on screen.

  • EdgeInsetsGeometry padding : The amount of space by which to inset the items.

  • Color color : Defines Color of List items.

  • double fontSize : Defines the font size of List Items.

  • bool primary : Whether this is the primary scroll view associated with the parent.


VxDecimalList class

VxDecimalList is a pre-build widget which will allow you to create ordered bulleted (Decimal Number) list.

Widget build(BuildContext context) {
return VxDecimalList([
"Flutter",
"VelocityX",
"Dart",
"Fuschia"
]);

Above code displays all the list with the numbers starting form one before label

VxDecimalList Constructor

const VxDecimalList(
this._items, {
Key key,
this.padding,
this.color = Colors.black,
this.fontSize = 14.0,
this.primary = false,
})

VxDecimalList Properties

  • Key key : Controls how one widget replaces another widget in the tree.

  • List<String> _items : The String to displyed on screen.

  • EdgeInsetsGeometry padding : The amount of space by which to inset the items.

  • Color color : Defines Color of List items.

  • double fontSize : Defines the font size of List Items.

  • bool primary : Whether this is the primary scroll view associated with the parent.