update cargo type form from rate, update carton info and form
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/rendering.dart';
|
||||
import 'package:flutter_slidable/flutter_slidable.dart';
|
||||
|
||||
import '../helpers/theme.dart';
|
||||
import 'paginator_listener.dart';
|
||||
@@ -99,7 +100,23 @@ class _PaginatorListViewState<T> extends State<PaginatorListView<T>> {
|
||||
);
|
||||
}
|
||||
T t = _paginatorListener.data[index];
|
||||
return widget.rowBuilder(t);
|
||||
return Slidable(
|
||||
enabled: widget.onRemove != null ? true : false,
|
||||
endActionPane: ActionPane(
|
||||
extentRatio: 0.25,
|
||||
motion: const ScrollMotion(),
|
||||
children: widget.onRemove != null
|
||||
? [
|
||||
SlidableAction(
|
||||
onPressed: ((context) => widget.onRemove!(t)),
|
||||
backgroundColor: Colors.red,
|
||||
icon: Icons.delete,
|
||||
label: 'Delete',
|
||||
),
|
||||
]
|
||||
: [],
|
||||
),
|
||||
child: widget.rowBuilder(t));
|
||||
}),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user