抽屉表格修改
This commit is contained in:
parent
ce3cc92ad7
commit
fd81e94c4d
lib/pages/pile/pileGenerateCard
@ -218,14 +218,11 @@ class _PileGenerateState extends State<PileGenerate> {
|
|||||||
(item.dy - dy) * sin(rotation));
|
(item.dy - dy) * sin(rotation));
|
||||||
var dy1 = -(item.dx - dx) * sin(rotation) +
|
var dy1 = -(item.dx - dx) * sin(rotation) +
|
||||||
(item.dy - dy) * cos(rotation);
|
(item.dy - dy) * cos(rotation);
|
||||||
dx1 = double.parse(
|
|
||||||
(dx1 * 1000 / 1000).toStringAsFixed(3));
|
|
||||||
dy1 = double.parse(
|
|
||||||
(dy1 * 1000 / 1000).toStringAsFixed(3));
|
|
||||||
Offset xy = mapController.ScreenCenter2xy(dx1, dy1);
|
Offset xy = mapController.ScreenCenter2xy(dx1, dy1);
|
||||||
PilePoint pilePoint = PilePoint(
|
PilePoint pilePoint = PilePoint(
|
||||||
x: xy.dx,
|
x: (xy.dx * 1000).roundToDouble() / 1000,
|
||||||
y: xy.dy,
|
y: (xy.dy * 1000).roundToDouble() / 1000,
|
||||||
times: 0,
|
times: 0,
|
||||||
id: i + 1,
|
id: i + 1,
|
||||||
radius: 0.3);
|
radius: 0.3);
|
||||||
|
@ -70,7 +70,8 @@ class _PilePointTableState extends State<PilePointTable> {
|
|||||||
TableCell(
|
TableCell(
|
||||||
verticalAlignment: TableCellVerticalAlignment.middle,
|
verticalAlignment: TableCellVerticalAlignment.middle,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 12.0),
|
padding:
|
||||||
|
EdgeInsets.symmetric(horizontal: 12.0, vertical: 0),
|
||||||
child: Checkbox(
|
child: Checkbox(
|
||||||
value: _selected[index],
|
value: _selected[index],
|
||||||
onChanged: (bool? value) {
|
onChanged: (bool? value) {
|
||||||
@ -84,29 +85,30 @@ class _PilePointTableState extends State<PilePointTable> {
|
|||||||
TableCell(
|
TableCell(
|
||||||
verticalAlignment: TableCellVerticalAlignment.middle,
|
verticalAlignment: TableCellVerticalAlignment.middle,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 12.0),
|
padding:
|
||||||
|
EdgeInsets.symmetric(horizontal: 12.0, vertical: 0),
|
||||||
child: Text(widget.pilePoints[index].id.toString()),
|
child: Text(widget.pilePoints[index].id.toString()),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
TableCell(
|
TableCell(
|
||||||
verticalAlignment: TableCellVerticalAlignment.middle,
|
verticalAlignment: TableCellVerticalAlignment.middle,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 12.0),
|
padding:
|
||||||
|
EdgeInsets.symmetric(horizontal: 12.0, vertical: 0),
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
onTap: () => _editPilePoint(context, index, 'x'),
|
onTap: () => _editPilePoint(context, index, 'x'),
|
||||||
child:
|
child: Text(widget.pilePoints[index].x.toString()),
|
||||||
Text(widget.pilePoints[index].x.toString()),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
TableCell(
|
TableCell(
|
||||||
verticalAlignment: TableCellVerticalAlignment.middle,
|
verticalAlignment: TableCellVerticalAlignment.middle,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsets.symmetric(horizontal: 12.0),
|
padding:
|
||||||
|
EdgeInsets.symmetric(horizontal: 12.0, vertical: 0),
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
onTap: () => _editPilePoint(context, index, 'y'),
|
onTap: () => _editPilePoint(context, index, 'y'),
|
||||||
child:
|
child: Text(widget.pilePoints[index].y.toString()),
|
||||||
Text(widget.pilePoints[index].y.toString()),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user