update cargo type form from rate, update carton info and form

This commit is contained in:
tzw
2024-09-25 21:49:09 +06:30
parent 1be18c08a9
commit 02e079c514
51 changed files with 1407 additions and 643 deletions

View File

@@ -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));
}),
),
),