first google play release for internal testing

This commit is contained in:
2026-07-10 17:32:02 +03:00
parent e3c60c4775
commit 861a9abd02
11 changed files with 684 additions and 685 deletions
@@ -63,9 +63,7 @@ class _AccountEditorOverlayState extends State<AccountEditorOverlay> {
return;
}
dash.setState(() {
dash.tempAccountName = _nameController.text;
});
dash.tempAccountName = _nameController.text;
dash.overlayEntry?.markNeedsBuild();
});
}
@@ -411,9 +409,7 @@ class _AccountEditorOverlayState extends State<AccountEditorOverlay> {
onTap: () {
setState(() {
_selectedCurrency = entry.$1;
dash.setState(() {
dash.tempAccountCurrency = entry.$1;
});
dash.tempAccountCurrency = entry.$1;
dash.overlayEntry?.markNeedsBuild();
_showCurrencyDropdown = false;
});
@@ -57,16 +57,14 @@ class AccountColorPanel extends StatelessWidget {
);
void onHSVChanged(HSVColor hsv) {
if (dashboardState.editingPrimary) {
dashboardState.tempPrimaryHSV = hsv;
dashboardState.tempPrimary = hsv.toColor();
} else {
dashboardState.tempSecondaryHSV = hsv;
dashboardState.tempSecondary = hsv.toColor();
}
setPanelState(() {});
dashboardState.setState(() {
if (dashboardState.editingPrimary) {
dashboardState.tempPrimaryHSV = hsv;
dashboardState.tempPrimary = hsv.toColor();
} else {
dashboardState.tempSecondaryHSV = hsv;
dashboardState.tempSecondary = hsv.toColor();
}
});
dashboardState.overlayEntry?.markNeedsBuild();
}
@@ -106,18 +104,16 @@ class AccountColorPanel extends StatelessWidget {
: dashboardState.tempPrimary,
isDimmed: isSolid,
onTap: () {
dashboardState.setState(() {
if (isSolid)
if (Theme.of(dashboardContext).brightness ==
Brightness.dark) {
dashboardState.tempDarkGradientType =
CardColorService.defaultGradientDark;
} else {
dashboardState.tempLightGradientType =
CardColorService.defaultGradientLight;
}
dashboardState.editingPrimary = true;
});
if (isSolid)
if (Theme.of(dashboardContext).brightness ==
Brightness.dark) {
dashboardState.tempDarkGradientType =
GradientType.linear;
} else {
dashboardState.tempLightGradientType =
GradientType.linear;
}
dashboardState.editingPrimary = true;
setPanelState(() {});
dashboardState.overlayEntry?.markNeedsBuild();
},
@@ -132,18 +128,16 @@ class AccountColorPanel extends StatelessWidget {
color: dashboardState.tempSecondary,
isDimmed: isSolid,
onTap: () {
dashboardState.setState(() {
if (isSolid)
if (Theme.of(dashboardContext).brightness ==
Brightness.dark) {
dashboardState.tempDarkGradientType =
CardColorService.defaultGradientDark;
} else {
dashboardState.tempLightGradientType =
CardColorService.defaultGradientLight;
}
dashboardState.editingPrimary = false;
});
if (isSolid)
if (Theme.of(dashboardContext).brightness ==
Brightness.dark) {
dashboardState.tempDarkGradientType =
GradientType.linear;
} else {
dashboardState.tempLightGradientType =
GradientType.linear;
}
dashboardState.editingPrimary = false;
setPanelState(() {});
dashboardState.overlayEntry?.markNeedsBuild();
},
@@ -164,17 +158,15 @@ class AccountColorPanel extends StatelessWidget {
onTap: isSolid
? null
: () {
dashboardState.setState(() {
if (Theme.of(dashboardContext).brightness ==
Brightness.dark) {
dashboardState.tempDarkGradientType =
GradientType.solid;
} else {
dashboardState.tempLightGradientType =
GradientType.solid;
}
dashboardState.editingPrimary = true;
});
if (Theme.of(dashboardContext).brightness ==
Brightness.dark) {
dashboardState.tempDarkGradientType =
GradientType.solid;
} else {
dashboardState.tempLightGradientType =
GradientType.solid;
}
dashboardState.editingPrimary = true;
setPanelState(() {});
dashboardState.overlayEntry?.markNeedsBuild();
},
@@ -292,10 +284,7 @@ class AccountColorPanel extends StatelessWidget {
children: [
GestureDetector(
onTap: () {
dashboardState.setState(
() => dashboardState.editingPrimary =
true,
);
dashboardState.editingPrimary = true;
setPanelState(() {});
dashboardState.overlayEntry
?.markNeedsBuild();
@@ -350,11 +339,7 @@ class AccountColorPanel extends StatelessWidget {
if (!isSolid)
GestureDetector(
onTap: () {
dashboardState.setState(
() =>
dashboardState.editingPrimary =
false,
);
dashboardState.editingPrimary = false;
setPanelState(() {});
dashboardState.overlayEntry
?.markNeedsBuild();
@@ -420,13 +405,8 @@ class AccountColorPanel extends StatelessWidget {
),
),
SizedBox(height: layout.controlSpacing),
IgnorePointer(
ignoring: isSolid,
child: AnimatedOpacity(
duration: const Duration(milliseconds: 200),
opacity: isSolid ? 0.3 : 1.0,
child: Row(
children: GradientType.values
Row(
children: GradientType.values
.where((t) => t != GradientType.solid)
.map((type) {
final isSelected = activeGradientType == type;
@@ -452,19 +432,15 @@ class AccountColorPanel extends StatelessWidget {
padding: const EdgeInsets.only(right: 6),
child: GestureDetector(
onTap: () {
dashboardState.setState(
() {
if (Theme.of(dashboardContext)
.brightness ==
Brightness.dark) {
dashboardState.tempDarkGradientType =
type;
} else {
dashboardState.tempLightGradientType =
type;
}
},
);
if (Theme.of(dashboardContext)
.brightness ==
Brightness.dark) {
dashboardState.tempDarkGradientType =
type;
} else {
dashboardState.tempLightGradientType =
type;
}
setPanelState(() {});
dashboardState.overlayEntry
?.markNeedsBuild();
@@ -526,10 +502,8 @@ class AccountColorPanel extends StatelessWidget {
),
),
);
})
.toList(),
),
),
})
.toList(),
),
SizedBox(height: layout.controlSpacing),
Row(
@@ -546,19 +520,17 @@ class AccountColorPanel extends StatelessWidget {
final defS = isDarkTheme
? CardColorService.defaultSecondary
: CardColorService.defaultSecondaryLight;
dashboardState.setState(() {
dashboardState.tempPrimary = defP;
dashboardState.tempSecondary = defS;
dashboardState.tempPrimaryHSV = HSVColor.fromColor(
defP,
);
dashboardState.tempSecondaryHSV =
HSVColor.fromColor(defS);
dashboardState.tempPrimary = defP;
dashboardState.tempSecondary = defS;
dashboardState.tempPrimaryHSV = HSVColor.fromColor(
defP,
);
dashboardState.tempSecondaryHSV =
HSVColor.fromColor(defS);
dashboardState.tempLightGradientType =
CardColorService.defaultGradientLight;
dashboardState.tempDarkGradientType =
CardColorService.defaultGradientDark;
});
setPanelState(() {});
dashboardState.overlayEntry?.markNeedsBuild();
},