hook up the add new tag page

This commit is contained in:
zontreck 2024-06-07 01:05:22 -07:00
parent 240502972e
commit 2bc99f6bd9
16 changed files with 96 additions and 46 deletions

38
lib/pages/AddPage.dart Normal file
View file

@ -0,0 +1,38 @@
import 'package:flutter/material.dart';
import 'package:libac_dart/nbt/Tag.dart';
import 'package:nbteditor/Constants.dart';
class AddPage extends StatefulWidget {
@override
State<StatefulWidget> createState() => AddState();
}
class AddState extends State<AddPage> {
@override
void didChangeDependencies() {
var args = ModalRoute.of(context)!.settings.arguments as AddElementArgs;
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Add Tag"),
backgroundColor: Constants.TITLEBAR_COLOR,
),
body: Padding(
padding: EdgeInsets.all(8),
child: SingleChildScrollView(
child: Column(
children: [],
),
),
),
);
}
}
class AddElementArgs {
Tag tag;
AddElementArgs({required this.tag});
}