flutter widget with builder method code example
Example: builder flutter
Builder(
builder: (context) => FloatingActionButton(
child: Icon(Icons.add),
onPressed: () => showAddNewTxnFloatModal(context),
backgroundColor: Theme.of(context).accentColor,
),
)