List

VelocityX includes the pre-build Ordered and Unorders list which you can use directly in the application to list he different widgets.

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 VxDiscList([
"Flutter",
"VelocityX",
"Dart",
"Fuschia"
]);

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

VxDecimalList Constructor

const VxDiscList(
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.