t×tecexpressby TeKOcloud
DEv0.7.1
Navigation & feedback / FLUTTER

TxFloatingActionButton.

Interactive preview

Floating primary action or expandable action group.

TxFloatingActionButton

ParameterTypeDefaultMeaning
itemsList<TxAction>const []Entries; replaced by dataSource when bound.
dataSourceObject?nullList, configuration or DataSource instance; takes precedence over items.
onItemClickValueChanged<TxAction>?nullReports the activated entry; arguments follow the callback signature.
disabledboolfalseDisables interaction.
iconIconDataIcons.addAction icon.
dart
import 'package:flutter/material.dart';
import 'package:tecexpress/tecexpress.dart';

Widget example() {

  return TxFloatingActionButton(items: const [TxAction(id: 'add', text: 'Add')], onItemClick: (action) {});
}