pile_nav_new/lib/pages/history/line_chart.dart

41 lines
941 B
Dart
Raw Normal View History

2024-11-15 17:42:52 +08:00
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
class MyLineChart extends StatefulWidget {
final int pileId;
const MyLineChart({super.key, required this.pileId});
@override
State<MyLineChart> createState() => _MyLineChartState();
}
class _MyLineChartState extends State<MyLineChart> {
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
final size = MediaQuery.of(context).size;
// 锁定横屏
SystemChrome.setPreferredOrientations([
DeviceOrientation.landscapeLeft,
DeviceOrientation.landscapeRight,
]);
return Scaffold(
appBar: AppBar(
toolbarHeight: 30,
title: Text("桩点${widget.pileId}过程"),
),
body: SizedBox(
height: size.height - 30,
2024-11-18 14:48:54 +08:00
// child: ProcessChart(
// pileId: widget.pileId,
// )
),
2024-11-15 17:42:52 +08:00
);
}
}