import 'package:flutter/material.dart'; import '../../about/external/data/Goal.dart'; import 'GoalEditorState.dart'; /// Create or edit a goal. Pops the saved [Goal], or `"archived"` when the goal /// was archived, so a detail screen underneath knows to close as well. class GoalEditor extends StatefulWidget { /// The goal being edited; null creates a new one. final Goal? goal; const GoalEditor({super.key, this.goal}); @override State createState() => GoalEditorState(); }