Skip to content

Commit

Permalink
修复
Browse files Browse the repository at this point in the history
  • Loading branch information
coldshineb committed Nov 15, 2024
1 parent 6767998 commit fea4691
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ class StationNameSignState extends State<StationNameSign> with ImageMaker {
@override
MenuBar importAndExportMenubar() {
return MenuBar(style: menuStyle(context), children: [
importLineJsonMenuItemButton(importLineJson),
importStationJsonMenuItemButton(importStationJson),
const VerticalDivider(thickness: 2),
exportAllImageMenuItemButton(exportAllImage),
const VerticalDivider(),
Expand All @@ -286,7 +286,7 @@ class StationNameSignState extends State<StationNameSign> with ImageMaker {
}

//导入线路文件
void importLineJson() async {
void importStationJson() async {
List<dynamic> stationsFromJson = [];
Map<String, dynamic> jsonData;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ class PlatformLevelSideNameState extends State<PlatformLevelSideName>
@override
MenuBar importAndExportMenubar() {
return MenuBar(style: menuStyle(context), children: [
importLineJsonMenuItemButton(importLineJson),
importStationJsonMenuItemButton(importStationJson),
const VerticalDivider(thickness: 2),
exportAllImageMenuItemButton(exportAllImage),
const VerticalDivider(),
Expand All @@ -271,7 +271,7 @@ class PlatformLevelSideNameState extends State<PlatformLevelSideName>
}

//导入线路文件
void importLineJson() async {
void importStationJson() async {
List<dynamic> stationsFromJson = [];
Map<String, dynamic> jsonData;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ class StationEntranceCoverState extends State<StationEntranceCover>
MenuBar importAndExportMenubar() {
return MenuBar(style: menuStyle(context), children: [
generalIsDevMode ? importImageMenuItemButton(_importImage) : Container(),
importLineJsonMenuItemButton(importLineJson),
importStationJsonMenuItemButton(importStationJson),
const VerticalDivider(thickness: 2),
exportAllImageMenuItemButton(exportAllImage),
const VerticalDivider(),
Expand Down Expand Up @@ -611,7 +611,7 @@ class StationEntranceCoverState extends State<StationEntranceCover>

//导入线路文件
@override
void importLineJson() async {
void importStationJson() async {
List<dynamic> stationsFromJson = [];
Map<String, dynamic> jsonData;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ class StationEntranceSideNameState extends State<StationEntranceSideName>
MenuBar importAndExportMenubar() {
return MenuBar(style: menuStyle(context), children: [
generalIsDevMode ? importImageMenuItemButton(_importImage) : Container(),
importLineJsonMenuItemButton(importLineJson),
importStationJsonMenuItemButton(importStationJson),
const VerticalDivider(thickness: 2),
exportAllImageMenuItemButton(exportAllImage),
const VerticalDivider(),
Expand Down Expand Up @@ -541,9 +541,9 @@ class StationEntranceSideNameState extends State<StationEntranceSideName>
}
}

//导入线路文件
//导入站名文件
@override
void importLineJson() async {
void importStationJson() async {
List<dynamic> stationsFromJson = [];
Map<String, dynamic> jsonData;

Expand Down
9 changes: 9 additions & 0 deletions lib/Parent/ImageMaker/ImageMaker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,15 @@ mixin class ImageMaker {
height: 48,
child: MenuItemButton(
onPressed: importLineJson,
child: const Row(children: [Icon(Icons.code), SizedBox(width: 5),Text("导入线路")])),
);
}

Container importStationJsonMenuItemButton(VoidCallback importStationJson) {
return Container(
height: 48,
child: MenuItemButton(
onPressed: importStationJson,
child: const Row(children: [Icon(Icons.code), SizedBox(width: 5),Text("导入站名")])),
);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Parent/ImageMaker/RailwayTransit/StationEntrance.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ mixin class StationEntrance {
}

//导入线路文件
void importLineJson() async {}
void importStationJson() async {}

//导入纹理
void importPattern() async {}
Expand Down

0 comments on commit fea4691

Please sign in to comment.