Skip to content

Commit

Permalink
20240221 update1
Browse files Browse the repository at this point in the history
  • Loading branch information
neko0xff committed Feb 21, 2024
1 parent b0c698f commit c3fc8ff
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 47 deletions.
38 changes: 16 additions & 22 deletions src/demo/viewapp_master/lib/pages/widget/CBAM/emissions_db.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ const Color enableColor = Colors.black;

List<String> items1 = [];
String selectedItem1 = "";
const String setname = "車用汽油(於移動源使用,2021)";
const String setname = "苯乙烯-乙烯/丁烯-苯乙烯熱塑性彈性體";

class CBAMemissions_db extends StatelessWidget {
const CBAMemissions_db({super.key});
const CBAMemissions_db({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
Expand All @@ -28,7 +28,7 @@ class CBAMemissions_db extends StatelessWidget {
}

class InputGet extends StatefulWidget {
const InputGet({super.key});
const InputGet({Key? key}) : super(key: key);

@override
_InputGetState createState() => _InputGetState();
Expand Down Expand Up @@ -79,7 +79,7 @@ class _InputGetState extends State<InputGet> {
}

class PostStr extends StatelessWidget {
const PostStr({super.key});
const PostStr({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
Expand All @@ -100,7 +100,7 @@ class PostStr extends StatelessWidget {
}

class DbCPL extends StatefulWidget {
const DbCPL({super.key});
const DbCPL({Key? key}) : super(key: key);

@override
_DbCPLState createState() => _DbCPLState();
Expand Down Expand Up @@ -159,18 +159,12 @@ class _DbCPLState extends State<DbCPL> {
selectedCPL = value!;
});
},
items: [
DropdownMenuItem(
value: null,
child: Text(selectedItem1),
),
...items1.map((item) {
return DropdownMenuItem<String>(
value: item,
child: Text(item),
);
}),
],
items: items1.map((item) {
return DropdownMenuItem<String>(
value: item,
child: Text(item),
);
}).toList(),
),
],
),
Expand All @@ -179,7 +173,7 @@ class _DbCPLState extends State<DbCPL> {
}

class TbTotal extends StatelessWidget {
const TbTotal({super.key});
const TbTotal({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
Expand All @@ -204,7 +198,7 @@ class TbTotal extends StatelessWidget {
}

class BtnClear extends StatelessWidget {
const BtnClear({super.key});
const BtnClear({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
Expand All @@ -226,7 +220,7 @@ class BtnClear extends StatelessWidget {
}

class BtnView extends StatelessWidget {
const BtnView({super.key});
const BtnView({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
Expand Down Expand Up @@ -259,7 +253,7 @@ class BtnView extends StatelessWidget {
}

class BtnStrSend extends StatelessWidget {
const BtnStrSend({super.key});
const BtnStrSend({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
Expand Down Expand Up @@ -354,7 +348,7 @@ class BtnStrSend extends StatelessWidget {
}

class BtnGoBack extends StatelessWidget {
const BtnGoBack({super.key});
const BtnGoBack({Key? key}) : super(key: key);

@override
Widget build(BuildContext context) {
Expand Down
18 changes: 6 additions & 12 deletions src/demo/viewapp_master/lib/pages/widget/Cfoot/other_db.dart
Original file line number Diff line number Diff line change
Expand Up @@ -158,18 +158,12 @@ class _DbCPLState extends State<DbCPL> {
selectedCPL = value!;
});
},
items: [
DropdownMenuItem(
value: null,
child: Text(selectedItem1),
),
...items1.map((item) {
return DropdownMenuItem<String>(
value: item,
child: Text(item),
);
}),
],
items: items1.map((item) {
return DropdownMenuItem<String>(
value: item,
child: Text(item),
);
}).toList(),
),
],
),
Expand Down
20 changes: 7 additions & 13 deletions src/demo/viewapp_master/lib/pages/widget/Cfoot/traffic_db.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ List<String> items1 = [
'營業大貨車(柴油)',
];
String selectedItem1 = "車用汽油(於移動源使用,2021)";
String selectedItem1Rest = "車用汽油(於移動源使用,2021)";
String setname = "車用汽油(於移動源使用,2021)";

final TextEditingController distStr = TextEditingController();

Expand Down Expand Up @@ -138,18 +138,12 @@ class _DbCPLState extends State<DbCPL> {
selectedCPL = value!;
});
},
items: [
DropdownMenuItem(
value: null,
child: Text(selectedItem1),
),
...items1.map((item) {
return DropdownMenuItem<String>(
value: item,
child: Text(item),
);
}),
],
items: items1.map((item) {
return DropdownMenuItem<String>(
value: item,
child: Text(item),
);
}).toList(),
),
],
),
Expand Down

0 comments on commit c3fc8ff

Please sign in to comment.