mirror of
https://github.com/koloideal/Casha.git
synced 2026-08-08 17:51:14 +03:00
first google play release for internal testing
This commit is contained in:
@@ -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();
|
||||
},
|
||||
|
||||
@@ -186,16 +186,14 @@ class _FullScreenBlurOverlayState extends State<FullScreenBlurOverlay> {
|
||||
);
|
||||
|
||||
void onHSVChanged(HSVColor hsv) {
|
||||
if (dash.editingPrimary) {
|
||||
dash.tempPrimaryHSV = hsv;
|
||||
dash.tempPrimary = hsv.toColor();
|
||||
} else {
|
||||
dash.tempSecondaryHSV = hsv;
|
||||
dash.tempSecondary = hsv.toColor();
|
||||
}
|
||||
setPanelState(() {});
|
||||
dash.setState(() {
|
||||
if (dash.editingPrimary) {
|
||||
dash.tempPrimaryHSV = hsv;
|
||||
dash.tempPrimary = hsv.toColor();
|
||||
} else {
|
||||
dash.tempSecondaryHSV = hsv;
|
||||
dash.tempSecondary = hsv.toColor();
|
||||
}
|
||||
});
|
||||
dash.overlayEntry?.markNeedsBuild();
|
||||
}
|
||||
|
||||
@@ -233,19 +231,17 @@ class _FullScreenBlurOverlayState extends State<FullScreenBlurOverlay> {
|
||||
: dash.tempPrimary,
|
||||
isDimmed: isSolid,
|
||||
onTap: () {
|
||||
dash.setState(() {
|
||||
if (isSolid) {
|
||||
if (Theme.of(widget.context).brightness ==
|
||||
Brightness.dark) {
|
||||
dash.tempDarkGradientType =
|
||||
CardColorService.defaultGradientDark;
|
||||
} else {
|
||||
dash.tempLightGradientType =
|
||||
CardColorService.defaultGradientLight;
|
||||
}
|
||||
if (isSolid) {
|
||||
if (Theme.of(widget.context).brightness ==
|
||||
Brightness.dark) {
|
||||
dash.tempDarkGradientType =
|
||||
GradientType.linear;
|
||||
} else {
|
||||
dash.tempLightGradientType =
|
||||
GradientType.linear;
|
||||
}
|
||||
dash.editingPrimary = true;
|
||||
});
|
||||
}
|
||||
dash.editingPrimary = true;
|
||||
setPanelState(() {});
|
||||
dash.overlayEntry?.markNeedsBuild();
|
||||
},
|
||||
@@ -259,19 +255,17 @@ class _FullScreenBlurOverlayState extends State<FullScreenBlurOverlay> {
|
||||
color: dash.tempSecondary,
|
||||
isDimmed: isSolid,
|
||||
onTap: () {
|
||||
dash.setState(() {
|
||||
if (isSolid) {
|
||||
if (Theme.of(widget.context).brightness ==
|
||||
Brightness.dark) {
|
||||
dash.tempDarkGradientType =
|
||||
CardColorService.defaultGradientDark;
|
||||
} else {
|
||||
dash.tempLightGradientType =
|
||||
CardColorService.defaultGradientLight;
|
||||
}
|
||||
if (isSolid) {
|
||||
if (Theme.of(widget.context).brightness ==
|
||||
Brightness.dark) {
|
||||
dash.tempDarkGradientType =
|
||||
GradientType.linear;
|
||||
} else {
|
||||
dash.tempLightGradientType =
|
||||
GradientType.linear;
|
||||
}
|
||||
dash.editingPrimary = false;
|
||||
});
|
||||
}
|
||||
dash.editingPrimary = false;
|
||||
setPanelState(() {});
|
||||
dash.overlayEntry?.markNeedsBuild();
|
||||
},
|
||||
@@ -291,17 +285,15 @@ class _FullScreenBlurOverlayState extends State<FullScreenBlurOverlay> {
|
||||
onTap: isSolid
|
||||
? null
|
||||
: () {
|
||||
dash.setState(() {
|
||||
if (Theme.of(widget.context).brightness ==
|
||||
Brightness.dark) {
|
||||
dash.tempDarkGradientType =
|
||||
GradientType.solid;
|
||||
} else {
|
||||
dash.tempLightGradientType =
|
||||
GradientType.solid;
|
||||
}
|
||||
dash.editingPrimary = true;
|
||||
});
|
||||
if (Theme.of(widget.context).brightness ==
|
||||
Brightness.dark) {
|
||||
dash.tempDarkGradientType =
|
||||
GradientType.solid;
|
||||
} else {
|
||||
dash.tempLightGradientType =
|
||||
GradientType.solid;
|
||||
}
|
||||
dash.editingPrimary = true;
|
||||
setPanelState(() {});
|
||||
dash.overlayEntry?.markNeedsBuild();
|
||||
},
|
||||
@@ -418,9 +410,7 @@ class _FullScreenBlurOverlayState extends State<FullScreenBlurOverlay> {
|
||||
children: [
|
||||
GestureDetector(
|
||||
onTap: () {
|
||||
dash.setState(
|
||||
() => dash.editingPrimary = true,
|
||||
);
|
||||
dash.editingPrimary = true;
|
||||
setPanelState(() {});
|
||||
dash.overlayEntry?.markNeedsBuild();
|
||||
},
|
||||
@@ -471,9 +461,7 @@ class _FullScreenBlurOverlayState extends State<FullScreenBlurOverlay> {
|
||||
if (!isSolid)
|
||||
GestureDetector(
|
||||
onTap: () {
|
||||
dash.setState(
|
||||
() => dash.editingPrimary = false,
|
||||
);
|
||||
dash.editingPrimary = false;
|
||||
setPanelState(() {});
|
||||
dash.overlayEntry?.markNeedsBuild();
|
||||
},
|
||||
@@ -532,13 +520,8 @@ class _FullScreenBlurOverlayState extends State<FullScreenBlurOverlay> {
|
||||
),
|
||||
),
|
||||
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;
|
||||
@@ -564,14 +547,12 @@ class _FullScreenBlurOverlayState extends State<FullScreenBlurOverlay> {
|
||||
padding: const EdgeInsets.only(right: 6),
|
||||
child: GestureDetector(
|
||||
onTap: () {
|
||||
dash.setState(() {
|
||||
if (Theme.of(widget.context).brightness ==
|
||||
Brightness.dark) {
|
||||
dash.tempDarkGradientType = type;
|
||||
} else {
|
||||
dash.tempLightGradientType = type;
|
||||
}
|
||||
});
|
||||
if (Theme.of(widget.context).brightness ==
|
||||
Brightness.dark) {
|
||||
dash.tempDarkGradientType = type;
|
||||
} else {
|
||||
dash.tempLightGradientType = type;
|
||||
}
|
||||
setPanelState(() {});
|
||||
dash.overlayEntry?.markNeedsBuild();
|
||||
},
|
||||
@@ -632,10 +613,8 @@ class _FullScreenBlurOverlayState extends State<FullScreenBlurOverlay> {
|
||||
),
|
||||
),
|
||||
);
|
||||
})
|
||||
.toList(),
|
||||
),
|
||||
),
|
||||
})
|
||||
.toList(),
|
||||
),
|
||||
SizedBox(height: layout.controlSpacing),
|
||||
Row(
|
||||
@@ -652,16 +631,14 @@ class _FullScreenBlurOverlayState extends State<FullScreenBlurOverlay> {
|
||||
final defS = isDarkTheme
|
||||
? CardColorService.defaultSecondary
|
||||
: CardColorService.defaultSecondaryLight;
|
||||
dash.setState(() {
|
||||
dash.tempPrimary = defP;
|
||||
dash.tempSecondary = defS;
|
||||
dash.tempPrimaryHSV = HSVColor.fromColor(defP);
|
||||
dash.tempSecondaryHSV = HSVColor.fromColor(defS);
|
||||
dash.tempLightGradientType =
|
||||
CardColorService.defaultGradientLight;
|
||||
dash.tempDarkGradientType =
|
||||
CardColorService.defaultGradientDark;
|
||||
});
|
||||
dash.tempPrimary = defP;
|
||||
dash.tempSecondary = defS;
|
||||
dash.tempPrimaryHSV = HSVColor.fromColor(defP);
|
||||
dash.tempSecondaryHSV = HSVColor.fromColor(defS);
|
||||
dash.tempLightGradientType =
|
||||
CardColorService.defaultGradientLight;
|
||||
dash.tempDarkGradientType =
|
||||
CardColorService.defaultGradientDark;
|
||||
setPanelState(() {});
|
||||
dash.overlayEntry?.markNeedsBuild();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user