Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9b2000efc2 | ||
|
|
cc6068b759 |
@@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [1.5.5] - 2026-01-07
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- **Sun position arc overflow** - Arc now constrained to fit within card boundaries
|
||||||
|
- Prevents arc and sun/moon from overflowing on wider displays
|
||||||
|
- Scales radius down when arc height exceeds available space
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- **Debug logging for environment user** - Logs authenticated user on environment data load
|
||||||
|
|
||||||
|
## [1.5.4] - 2026-01-07
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- User display in environment section header (reverted in 1.5.5)
|
||||||
|
|
||||||
## [1.5.3] - 2026-01-07
|
## [1.5.3] - 2026-01-07
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|||||||
@@ -129,13 +129,17 @@ class _DashboardContentState extends ConsumerState<DashboardContent> {
|
|||||||
const SizedBox(height: 24),
|
const SizedBox(height: 24),
|
||||||
|
|
||||||
// Environment - Sun, Weather, Forecast, Air Quality
|
// Environment - Sun, Weather, Forecast, Air Quality
|
||||||
_SectionHeader(title: 'Environment', icon: Icons.eco),
|
const _SectionHeader(title: 'Environment', icon: Icons.eco),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 8),
|
||||||
environmentAsync.when(
|
environmentAsync.when(
|
||||||
data: (envData) => _EnvironmentSection(
|
data: (envData) {
|
||||||
envData: envData,
|
// Debug: log user on first load
|
||||||
onRefresh: () => ref.invalidate(environmentProvider),
|
debugPrint('Environment API user: ${envData.user}');
|
||||||
),
|
return _EnvironmentSection(
|
||||||
|
envData: envData,
|
||||||
|
onRefresh: () => ref.invalidate(environmentProvider),
|
||||||
|
);
|
||||||
|
},
|
||||||
loading: () => const Card(
|
loading: () => const Card(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: EdgeInsets.all(32),
|
padding: EdgeInsets.all(32),
|
||||||
|
|||||||
@@ -386,7 +386,15 @@ class _SunArcPainter extends CustomPainter {
|
|||||||
|
|
||||||
// Calculate radius so arc endpoints touch horizon
|
// Calculate radius so arc endpoints touch horizon
|
||||||
// For a chord of width W and arc angle θ: R = W / (2 * sin(θ/2))
|
// For a chord of width W and arc angle θ: R = W / (2 * sin(θ/2))
|
||||||
final radius = horizonWidth / (2 * math.sin(clampedAngle / 2));
|
var radius = horizonWidth / (2 * math.sin(clampedAngle / 2));
|
||||||
|
|
||||||
|
// Constrain arc height to fit within available space (leave 25px margin for sun)
|
||||||
|
final maxArcHeight = size.height - horizonY - 25;
|
||||||
|
final arcHeight = radius * (1 - math.cos(clampedAngle / 2));
|
||||||
|
if (arcHeight > maxArcHeight) {
|
||||||
|
// Scale radius down to fit
|
||||||
|
radius = maxArcHeight / (1 - math.cos(clampedAngle / 2));
|
||||||
|
}
|
||||||
|
|
||||||
// Arc center is below the horizon for an upward-bulging arc
|
// Arc center is below the horizon for an upward-bulging arc
|
||||||
// Distance from chord to center = R * cos(θ/2)
|
// Distance from chord to center = R * cos(θ/2)
|
||||||
@@ -491,7 +499,15 @@ class _SunArcPainter extends CustomPainter {
|
|||||||
final clampedAngle = arcAngle.clamp(math.pi / 6, math.pi);
|
final clampedAngle = arcAngle.clamp(math.pi / 6, math.pi);
|
||||||
|
|
||||||
// Calculate radius so arc endpoints touch horizon
|
// Calculate radius so arc endpoints touch horizon
|
||||||
final radius = horizonWidth / (2 * math.sin(clampedAngle / 2));
|
var radius = horizonWidth / (2 * math.sin(clampedAngle / 2));
|
||||||
|
|
||||||
|
// Constrain arc height to fit within available space (leave 20px margin for moon)
|
||||||
|
final maxArcHeight = size.height - horizonY - 20;
|
||||||
|
final arcHeight = radius * (1 - math.cos(clampedAngle / 2));
|
||||||
|
if (arcHeight > maxArcHeight) {
|
||||||
|
// Scale radius down to fit
|
||||||
|
radius = maxArcHeight / (1 - math.cos(clampedAngle / 2));
|
||||||
|
}
|
||||||
|
|
||||||
// Arc center is below the horizon for an upward-bulging arc
|
// Arc center is below the horizon for an upward-bulging arc
|
||||||
final horizonYPos = size.height - horizonY;
|
final horizonYPos = size.height - horizonY;
|
||||||
|
|||||||
+1
-1
@@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
|
|||||||
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
|
||||||
# In Windows, build-name is used as the major, minor, and patch parts
|
# In Windows, build-name is used as the major, minor, and patch parts
|
||||||
# of the product and file versions while build-number is used as the build suffix.
|
# of the product and file versions while build-number is used as the build suffix.
|
||||||
version: 1.5.3+1
|
version: 1.5.5+1
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ^3.10.4
|
sdk: ^3.10.4
|
||||||
|
|||||||
Reference in New Issue
Block a user