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