mirror of
https://github.com/PranshulGG/WeatherMaster.git
synced 2026-10-22 02:52:37 -05:00
fixed cloud animation, fixed #625
This commit is contained in:
1 parent
774755709a
commit
a7ece19ea3
9 files changed
+57
-10
No files matched your search
@@ -1295,10 +1295,13 @@ class ConditionsWidgetsForecast extends StatelessWidget {
|
||||
.onSurface,
|
||||
fontSize: isFoldableLayout(context)
|
||||
? 60
|
||||
: MediaQuery.of(context)
|
||||
.size
|
||||
.width *
|
||||
0.1,
|
||||
: context.locale.languageCode ==
|
||||
'bg'
|
||||
? 24
|
||||
: MediaQuery.of(context)
|
||||
.size
|
||||
.width *
|
||||
0.1,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -118,7 +118,9 @@ class _AppUnitsPageState extends State<AppUnitsPage> {
|
||||
? "M/s"
|
||||
: currentWindMode == "Bft"
|
||||
? "Bft"
|
||||
: "Km/h"]!),
|
||||
: currentWindMode == "Kt"
|
||||
? "Kt"
|
||||
: "Km/h"]!),
|
||||
dialogTitle: 'wind_unit'.tr(),
|
||||
options: optionsWind.values.toList(),
|
||||
initialOption: optionsWind[currentWindMode == "Mph"
|
||||
@@ -127,7 +129,9 @@ class _AppUnitsPageState extends State<AppUnitsPage> {
|
||||
? "M/s"
|
||||
: currentWindMode == "Bft"
|
||||
? "Bft"
|
||||
: "Km/h"],
|
||||
: currentWindMode == "Kt"
|
||||
? "Kt"
|
||||
: "Km/h"],
|
||||
onSubmitted: (value) {
|
||||
final selectedKey = optionsWind.entries
|
||||
.firstWhere((e) => e.value == value)
|
||||
|
||||
@@ -146,10 +146,20 @@ class WeatherConditionAnimationMapper {
|
||||
),
|
||||
),
|
||||
Positioned(
|
||||
top: -MediaQuery.of(context).padding.top,
|
||||
top: (setFullDisplay &&
|
||||
secondaryAnimationUrl
|
||||
.contains('cloudy_background.json') &&
|
||||
animationUrl.contains('cloudy_background.json'))
|
||||
? -MediaQuery.of(context).padding.top - (topMain ?? 0)
|
||||
: -MediaQuery.of(context).padding.top,
|
||||
left: 0,
|
||||
right: 0,
|
||||
height: diffHeight ?? 500,
|
||||
// height: diffHeight ?? 500,
|
||||
height: (isSunAnim == true && !isNightBool)
|
||||
? diffHeight ?? 500
|
||||
: setFullDisplay
|
||||
? MediaQuery.of(context).size.height
|
||||
: diffHeight ?? 500,
|
||||
child: RepaintBoundary(
|
||||
child: Lottie.asset(
|
||||
secondaryAnimationUrl,
|
||||
|
||||
@@ -763,7 +763,10 @@ class _ConditionsWidgetsState extends State<ConditionsWidgets> {
|
||||
color: Theme.of(context).colorScheme.onSurface,
|
||||
fontSize: isFoldableLayout(context)
|
||||
? 60
|
||||
: MediaQuery.of(context).size.width * 0.1,
|
||||
: context.locale.languageCode == 'bg'
|
||||
? 24
|
||||
: MediaQuery.of(context).size.width *
|
||||
0.1,
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -780,7 +783,7 @@ class _ConditionsWidgetsState extends State<ConditionsWidgets> {
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.onSurfaceVariant,
|
||||
fontSize: 16,
|
||||
fontSize: 18,
|
||||
),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
+16
@@ -777,3 +777,19 @@ create_cxx_tasks
|
||||
[gap of 34ms]
|
||||
create_cxx_tasks completed in 314ms
|
||||
|
||||
# C/C++ build system timings
|
||||
create_cxx_tasks
|
||||
create-initial-cxx-model
|
||||
create-module-model 54ms
|
||||
create-variant-model 17ms
|
||||
create-ARMEABI_V7A-model 57ms
|
||||
create-ARM64_V8A-model 10ms
|
||||
[gap of 37ms]
|
||||
create-ARM64_V8A-model 10ms
|
||||
create-X86-model 12ms
|
||||
create-module-model 10ms
|
||||
[gap of 33ms]
|
||||
create-initial-cxx-model completed in 257ms
|
||||
[gap of 29ms]
|
||||
create_cxx_tasks completed in 298ms
|
||||
|
||||
+11
@@ -212,3 +212,14 @@ create_cxx_tasks
|
||||
[gap of 32ms]
|
||||
create_cxx_tasks completed in 439ms
|
||||
|
||||
# C/C++ build system timings
|
||||
create_cxx_tasks
|
||||
create-initial-cxx-model
|
||||
create-module-model 34ms
|
||||
create-variant-model 14ms
|
||||
create-ARMEABI_V7A-model 33ms
|
||||
[gap of 84ms]
|
||||
create-initial-cxx-model completed in 169ms
|
||||
[gap of 32ms]
|
||||
create_cxx_tasks completed in 207ms
|
||||
|
||||
Reference in new issue
Block a user