周睿 1 vuosi sitten
vanhempi
commit
5559b9f44a

+ 5 - 8
app_business/lib/view/home/event_manage/event_manage.dart

@@ -69,19 +69,16 @@ class EventManage extends GetView<EventManagerController> {
     return Column(
       children: [
         Expanded(
-            child: ListView(
-          children: [
-            Obx(() => LineChart(titles: rightTitles(), children: rightUsers()))
-          ],
-        ))
+            child: Obx(
+                () => LineChart(titles: rightTitles(), children: rightUsers())))
       ],
     );
   }
 
   Iterable<LineChartTitle> rightTitles() {
     return [
-      LineChartTitle(
-          title: Checkbox(value: true, onChanged: (v) {}), width: 32),
+      // LineChartTitle(
+      //     title: Checkbox(value: true, onChanged: (v) {}), width: 32),
       const LineChartTitle(title: Text('序号'), width: 42),
       const LineChartTitle(title: Text('用户名'), width: 70),
       const LineChartTitle(title: Text('手机号'), flex: 1),
@@ -95,7 +92,7 @@ class EventManage extends GetView<EventManagerController> {
       final (i, one) = e;
 
       return LineChartElem([
-        Checkbox(value: false, onChanged: (v) {}),
+        // Checkbox(value: false, onChanged: (v) {}),
         Text('${i + 1}'),
         Text(one.name),
         Text(one.phone),

+ 4 - 2
libs/track_common/lib/widget/line_chart.dart

@@ -56,7 +56,9 @@ class LineChart extends StatelessWidget {
       title,
     ];
 
-    children.addAll(this.children.map((e) {
+    children.add(Expanded(
+        child: ListView(
+            children: this.children.map((e) {
       final row = <Widget>[];
       for (var (i, one) in e.cols.indexed) {
         final t = titles.elementAt(i);
@@ -83,7 +85,7 @@ class LineChart extends StatelessWidget {
           child: Row(
             children: row,
           ));
-    }));
+    }).toList())));
 
     return Column(
       mainAxisSize: MainAxisSize.min,