Fix local variable warning.
This commit is contained in:
parent
8ef8e0dad9
commit
f6f167dd83
@ -272,6 +272,7 @@ class _TrackedItemInputDialogState extends State<TrackedItemInputDialog> {
|
|||||||
double _amount = 0;
|
double _amount = 0;
|
||||||
Frequency _freq = Frequency.monthly;
|
Frequency _freq = Frequency.monthly;
|
||||||
String _desc = "";
|
String _desc = "";
|
||||||
|
ItemType? _type;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
@ -279,7 +280,7 @@ class _TrackedItemInputDialogState extends State<TrackedItemInputDialog> {
|
|||||||
(widget.entry != null && widget.entry!.type == null)) {
|
(widget.entry != null && widget.entry!.type == null)) {
|
||||||
throw FlutterError("No ItemType provided for TrackedItemInputDialog.");
|
throw FlutterError("No ItemType provided for TrackedItemInputDialog.");
|
||||||
}
|
}
|
||||||
ItemType? _type = widget.type;
|
_type = widget.type;
|
||||||
|
|
||||||
if (widget.entry != null) {
|
if (widget.entry != null) {
|
||||||
_id = widget.entry!.id;
|
_id = widget.entry!.id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user