pile_nav_new/lib/pages/history/line_chart.dart
2024-11-18 14:48:54 +08:00

41 lines
941 B
Dart

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,
// child: ProcessChart(
// pileId: widget.pileId,
// )
),
);
}
}