Adds in image icons
This commit is contained in:
parent
7836668d4c
commit
192f039421
21 changed files with 88 additions and 51 deletions
|
@ -3,6 +3,8 @@ import 'package:libac_dart/nbt/Tag.dart';
|
|||
import 'package:nbteditor/Constants.dart';
|
||||
|
||||
class AddPage extends StatefulWidget {
|
||||
const AddPage({super.key});
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() => AddState();
|
||||
}
|
||||
|
@ -17,10 +19,10 @@ class AddState extends State<AddPage> {
|
|||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text("Add Tag"),
|
||||
title: const Text("Add Tag"),
|
||||
backgroundColor: Constants.TITLEBAR_COLOR,
|
||||
),
|
||||
body: Padding(
|
||||
body: const Padding(
|
||||
padding: EdgeInsets.all(8),
|
||||
child: SingleChildScrollView(
|
||||
child: Column(
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
import 'package:flutter/material.dart';
|
||||
|
||||
class RenamePrompt extends StatefulWidget {
|
||||
const RenamePrompt({super.key});
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
return RenameState();
|
||||
|
@ -20,14 +22,14 @@ class RenameState extends State<RenamePrompt> {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return AlertDialog(
|
||||
icon: Icon(Icons.edit_attributes),
|
||||
title: Text("Edit Tag Name"),
|
||||
icon: const Icon(Icons.edit_attributes),
|
||||
title: const Text("Edit Tag Name"),
|
||||
actions: [
|
||||
ElevatedButton(
|
||||
onPressed: () {
|
||||
Navigator.pop(context, name.text);
|
||||
},
|
||||
child: Text("SUBMIT")),
|
||||
child: const Text("SUBMIT")),
|
||||
ElevatedButton(
|
||||
onPressed: () {
|
||||
Navigator.pop(context);
|
||||
|
|
|
@ -7,6 +7,8 @@ import 'package:nbteditor/Constants.dart';
|
|||
import 'package:nbteditor/SessionData.dart';
|
||||
|
||||
class SnbtEdit extends StatefulWidget {
|
||||
const SnbtEdit({super.key});
|
||||
|
||||
@override
|
||||
State<StatefulWidget> createState() {
|
||||
return SnbtState();
|
||||
|
@ -27,7 +29,7 @@ class SnbtState extends State<SnbtEdit> {
|
|||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text("SNBT Editor"),
|
||||
title: const Text("SNBT Editor"),
|
||||
backgroundColor: Constants.TITLEBAR_COLOR,
|
||||
),
|
||||
floatingActionButton: ElevatedButton(
|
||||
|
@ -42,18 +44,18 @@ class SnbtState extends State<SnbtEdit> {
|
|||
});
|
||||
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(content: Text("Successfully edited NBT data")));
|
||||
const SnackBar(content: Text("Successfully edited NBT data")));
|
||||
|
||||
Navigator.pop(context);
|
||||
} catch (E) {
|
||||
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
|
||||
ScaffoldMessenger.of(context).showSnackBar(const SnackBar(
|
||||
content: Text("FATAL ERROR: Your SNBT Syntax is not valid")));
|
||||
}
|
||||
},
|
||||
child: Text("Compile"),
|
||||
child: const Text("Compile"),
|
||||
),
|
||||
body: Padding(
|
||||
padding: EdgeInsets.all(8),
|
||||
padding: const EdgeInsets.all(8),
|
||||
child: CodeTheme(
|
||||
data: CodeThemeData(styles: vsTheme),
|
||||
child: SingleChildScrollView(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue