Add web build to CI schedule
This commit is contained in:
parent
b97a3e2cf5
commit
887a0638cd
8 changed files with 21 additions and 62 deletions
|
@ -1 +1 @@
|
|||
const VERSION = "1.1.012425+0821";
|
||||
const VERSION = "1.1.020225+1616";
|
||||
|
|
|
@ -11,6 +11,7 @@ import 'package:libac_dart/nbt/impl/ByteArrayTag.dart';
|
|||
import 'package:libac_dart/nbt/impl/CompoundTag.dart';
|
||||
import 'package:libac_dart/nbt/impl/IntArrayTag.dart';
|
||||
import 'package:libac_dart/nbt/impl/LongArrayTag.dart';
|
||||
import 'package:libacflutter/Prompt.dart';
|
||||
import 'package:nbteditor/Constants.dart';
|
||||
import 'package:nbteditor/Consts2.dart';
|
||||
import 'package:nbteditor/SessionData.dart';
|
||||
|
@ -77,9 +78,10 @@ class EditorState extends State<Editor> {
|
|||
context: context,
|
||||
builder: (dialogBuilder) {
|
||||
return InputPrompt(
|
||||
titleText: "What tag name to search for?",
|
||||
PromptText:
|
||||
"Enter the tag name you want to search for");
|
||||
title: "What tag name to search for?",
|
||||
prompt:
|
||||
"Enter the tag name or value you want to search for",
|
||||
type: InputPromptType.Text);
|
||||
});
|
||||
},
|
||||
icon: const Icon(CupertinoIcons.search_circle))
|
||||
|
|
|
@ -2,61 +2,6 @@ import 'package:flutter/material.dart';
|
|||
import 'package:libac_dart/nbt/Tag.dart';
|
||||
import 'package:libac_dart/nbt/impl/StringTag.dart';
|
||||
|
||||
class InputPrompt extends StatefulWidget {
|
||||
String titleText;
|
||||
String PromptText;
|
||||
String value;
|
||||
InputPrompt(
|
||||
{required this.titleText,
|
||||
required this.PromptText,
|
||||
super.key,
|
||||
this.value = ""});
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
return InputPromptState(
|
||||
title: Text(titleText), prompt: Text(PromptText), value: value);
|
||||
}
|
||||
}
|
||||
|
||||
class InputPromptState extends State<InputPrompt> {
|
||||
final Widget title;
|
||||
final Widget prompt;
|
||||
TextEditingController _editor = TextEditingController();
|
||||
|
||||
InputPromptState({required this.title, required this.prompt, String? value}) {
|
||||
if (value != null) _editor.text = value;
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return AlertDialog(
|
||||
title: title,
|
||||
actions: [
|
||||
ElevatedButton(
|
||||
onPressed: () async {
|
||||
Navigator.pop(context, _editor.text);
|
||||
},
|
||||
child: Text("Confirm")),
|
||||
ElevatedButton(
|
||||
onPressed: () async {
|
||||
Navigator.pop(context, "");
|
||||
},
|
||||
child: Text("Cancel"))
|
||||
],
|
||||
content: SizedBox(
|
||||
width: 200,
|
||||
height: 100,
|
||||
child: Column(children: [
|
||||
prompt,
|
||||
TextField(
|
||||
controller: _editor,
|
||||
)
|
||||
]),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
class EditValuePrompt extends StatefulWidget {
|
||||
const EditValuePrompt({super.key});
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ import 'package:flutter_code_editor/flutter_code_editor.dart';
|
|||
import 'package:flutter_highlight/themes/vs.dart';
|
||||
import 'package:libac_dart/nbt/SnbtIo.dart';
|
||||
import 'package:libac_dart/nbt/impl/CompoundTag.dart';
|
||||
import 'package:libacflutter/Prompt.dart';
|
||||
import 'package:nbteditor/Constants.dart';
|
||||
import 'package:nbteditor/SessionData.dart';
|
||||
import 'package:nbteditor/pages/EditValue.dart';
|
||||
|
@ -40,8 +41,9 @@ class SnbtState extends State<SnbtEdit> {
|
|||
context: context,
|
||||
builder: (searchBuilder) {
|
||||
return InputPrompt(
|
||||
titleText: "Search",
|
||||
PromptText: "What do you want to search for?");
|
||||
title: "Search",
|
||||
prompt: "What do you want to search for?",
|
||||
type: InputPromptType.Text);
|
||||
});
|
||||
},
|
||||
icon: Icon(CupertinoIcons.search))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue