Skip to content

Commit

Permalink
Fix typo's
Browse files Browse the repository at this point in the history
  • Loading branch information
gabber235 committed Nov 5, 2024
1 parent 6a4324d commit 7f54dd0
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 29 deletions.
39 changes: 23 additions & 16 deletions app/lib/widgets/components/app/cinematic_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ class _BackgroundLinePainter extends CustomPainter {
..strokeWidth = 1;

final secondaryPaint = Paint()
..color = Colors.grey.shade700.withValues(alpha:0.5)
..color = Colors.grey.shade700.withValues(alpha: 0.5)
..strokeWidth = 1;

for (final line in lines) {
Expand Down Expand Up @@ -1217,10 +1217,12 @@ class _MoveNotifier extends StateNotifier<_MoveState?> {
if (frame == segment.endFrame) return;
if (frame < segment.startFrame) return;

if (segment.minFrames != null &&
frame - segment.startFrame < segment.minFrames!) return;
if (segment.maxFrames != null &&
frame - segment.startFrame > segment.maxFrames!) return;
if (segment.minFrames != null && frame - segment.startFrame < segment.minFrames!) {
return;
}
if (segment.maxFrames != null && frame - segment.startFrame > segment.maxFrames!) {
return;
}

final nextSegment = state?.nextSegment;
if (nextSegment != null && frame > nextSegment.startFrame) return;
Expand All @@ -1237,10 +1239,12 @@ class _MoveNotifier extends StateNotifier<_MoveState?> {
if (frame == segment.startFrame) return;
if (frame > segment.endFrame) return;

if (segment.minFrames != null &&
segment.endFrame - frame < segment.minFrames!) return;
if (segment.maxFrames != null &&
segment.endFrame - frame > segment.maxFrames!) return;
if (segment.minFrames != null && segment.endFrame - frame < segment.minFrames!) {
return;
}
if (segment.maxFrames != null && segment.endFrame - frame > segment.maxFrames!) {
return;
}

final previousSegment = state?.previousSegment;
if (previousSegment != null && frame < previousSegment.endFrame) return;
Expand Down Expand Up @@ -1297,8 +1301,11 @@ class _SegmentDurationDisplay extends HookConsumerWidget {
return Text(
"Total Duration: $secondsWithDecimal seconds ($totalTime frames)",
style: Theme.of(context).textTheme.bodySmall?.apply(
color:
Theme.of(context).textTheme.bodySmall?.color?.withValues(alpha:0.8),
color: Theme.of(context)
.textTheme
.bodySmall
?.color
?.withValues(alpha: 0.8),
fontStyle: FontStyle.italic,
),
);
Expand Down Expand Up @@ -1487,8 +1494,8 @@ class _SegmentSelectorTile extends HookConsumerWidget {
segment.icon,
size: 16,
color: color.computeLuminance() > 0.5
? Colors.black.withValues(alpha:0.6)
: Colors.white.withValues(alpha:0.6),
? Colors.black.withValues(alpha: 0.6)
: Colors.white.withValues(alpha: 0.6),
),
const SizedBox(width: 8),
Text(
Expand All @@ -1505,8 +1512,8 @@ class _SegmentSelectorTile extends HookConsumerWidget {
TWIcons.angleRight,
size: 12,
color: color.computeLuminance() > 0.5
? Colors.black.withValues(alpha:0.5)
: Colors.white.withValues(alpha:0.5),
? Colors.black.withValues(alpha: 0.5)
: Colors.white.withValues(alpha: 0.5),
),
],
),
Expand Down Expand Up @@ -1608,7 +1615,7 @@ class _SegmentWidget extends HookConsumerWidget {
? Border.all(
color: context.isDark
? Colors.white
: Colors.black.withValues(alpha:0.4),
: Colors.black.withValues(alpha: 0.4),
width: 2,
)
: Border.all(color: Colors.transparent, width: 2),
Expand Down
26 changes: 13 additions & 13 deletions app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@ packages:
dependency: transitive
description:
name: _fe_analyzer_shared
sha256: "45cfa8471b89fb6643fe9bf51bd7931a76b8f5ec2d65de4fb176dba8d4f22c77"
sha256: "16e298750b6d0af7ce8a3ba7c18c69c3785d11b15ec83f6dcd0ad2a0009b3cab"
url: "https://pub.dev"
source: hosted
version: "73.0.0"
version: "76.0.0"
_macros:
dependency: transitive
description: dart
source: sdk
version: "0.3.2"
version: "0.3.3"
analyzer:
dependency: transitive
description:
name: analyzer
sha256: "4959fec185fe70cce007c57e9ab6983101dbe593d2bf8bbfb4453aaec0cf470a"
sha256: "1f14db053a8c23e260789e9b0980fa27f2680dd640932cae5e1137cce0e46e1e"
url: "https://pub.dev"
source: hosted
version: "6.8.0"
version: "6.11.0"
analyzer_plugin:
dependency: transitive
description:
Expand Down Expand Up @@ -689,10 +689,10 @@ packages:
dependency: transitive
description:
name: macros
sha256: "0acaed5d6b7eab89f63350bccd82119e6c602df0f391260d0e32b5e23db79536"
sha256: "1d9e801cd66f7ea3663c45fc708450db1fa57f988142c64289142c9b7ee80656"
url: "https://pub.dev"
source: hosted
version: "0.1.2-main.4"
version: "0.1.3-main.0"
matcher:
dependency: transitive
description:
Expand Down Expand Up @@ -1006,10 +1006,10 @@ packages:
dependency: "direct main"
description:
name: stack_trace
sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b"
sha256: "9f47fd3630d76be3ab26f0ee06d213679aa425996925ff3feffdec504931c377"
url: "https://pub.dev"
source: hosted
version: "1.11.1"
version: "1.12.0"
state_notifier:
dependency: transitive
description:
Expand Down Expand Up @@ -1238,10 +1238,10 @@ packages:
dependency: transitive
description:
name: vm_service
sha256: "5c5f338a667b4c644744b661f309fb8080bb94b18a7e91ef1dbd343bed00ed6d"
sha256: f6be3ed8bd01289b34d679c2b62226f63c0e69f9fd2e50a6b3c1c729a961041b
url: "https://pub.dev"
source: hosted
version: "14.2.5"
version: "14.3.0"
watcher:
dependency: transitive
description:
Expand Down Expand Up @@ -1278,10 +1278,10 @@ packages:
dependency: transitive
description:
name: webdriver
sha256: "003d7da9519e1e5f329422b36c4dcdf18d7d2978d1ba099ea4e45ba490ed845e"
sha256: "3d773670966f02a646319410766d3b5e1037efb7f07cc68f844d5e06cd4d61c8"
url: "https://pub.dev"
source: hosted
version: "3.0.3"
version: "3.0.4"
xdg_directories:
dependency: transitive
description:
Expand Down

0 comments on commit 7f54dd0

Please sign in to comment.