[READ ONLY MIRROR] Open Source TikTok alternative built on AT Protocol github.com/sprksocial/client
flutter atproto video dart
10
fork

Configure Feed

Select the types of activity you want to include in your feed.

add flutter lint action (#23)

* add flutter lint action

* only run if dart file changed

* test

* test

* fix lint

authored by

Davi Rodrigues and committed by
GitHub
397bf6b8 0ffe4c0d

+39 -2
+38
.github/workflows/flutter_lint.yml
··· 1 + name: Flutter Analyze Changed Files 2 + 3 + on: 4 + pull_request: 5 + branches: [main] 6 + types: [opened, synchronize, reopened] # Run when PR is opened, updated, or reopened 7 + 8 + jobs: 9 + lint: 10 + runs-on: ubuntu-latest 11 + 12 + steps: 13 + - name: Checkout Repository 14 + uses: actions/checkout@v4 15 + with: 16 + fetch-depth: 0 17 + 18 + - name: Get changed Dart files 19 + id: changed_files 20 + uses: tj-actions/changed-files@v46 21 + with: 22 + files: | 23 + **/*.dart 24 + 25 + - name: Set up Flutter 26 + if: steps.changed_files.outputs.all_changed_files != '' 27 + uses: subosito/flutter-action@v2 28 + with: 29 + channel: "stable" 30 + flutter-version: 3.29.2 31 + cache: true 32 + 33 + - name: Analyze Changed Files 34 + if: steps.changed_files.outputs.all_changed_files != '' 35 + run: | 36 + echo "Found changed Dart files:" 37 + echo "${{ steps.changed_files.outputs.all_changed_files }}" # Output the list for debugging 38 + flutter analyze ${{ steps.changed_files.outputs.all_changed_files }}
+1 -2
lib/models/feed_post.dart
··· 1 1 import 'package:bluesky/app_bsky_embed_video.dart'; 2 2 import 'package:bluesky/bluesky.dart'; 3 3 import 'package:sparksocial/widgets/video_info/hashtag_list.dart'; 4 - import 'package:sparksocial/config/app_config.dart'; 5 4 6 5 /// A unified model for handling feed posts from different sources 7 6 class FeedPost { ··· 130 129 if (blobRef != null && blobRef['ref'] != null) { 131 130 final ref = blobRef['ref'] as Map<String, dynamic>?; 132 131 if (ref != null && ref.containsKey('\$link')) { 133 - videoCid = ref['\$link'] as String; 132 + videoCid = ref['\$link'] as String?; 134 133 135 134 // Construct a video URL from the URI and CID 136 135 // Extract DID and CID from the postUri (format: at://did:plc:abc123/app.bsky.feed.post/cid123)