diff --git a/ios/fastlane/Fastfile b/ios/fastlane/Fastfile index 7ec14fc..9fadef2 100644 --- a/ios/fastlane/Fastfile +++ b/ios/fastlane/Fastfile @@ -40,7 +40,7 @@ platform :ios do ) deliver( - submit_for_review: true, + submit_for_review: false, automatic_release: false, skip_metadata: false, skip_screenshots: false, diff --git a/ios/fastlane/metadata/en-US/release_notes.txt b/ios/fastlane/metadata/en-US/release_notes.txt index 41c5f20..b8bec52 100644 --- a/ios/fastlane/metadata/en-US/release_notes.txt +++ b/ios/fastlane/metadata/en-US/release_notes.txt @@ -1,2 +1,2 @@ -- You can upload videos on your device now -- Maps now have labels \ No newline at end of file +- Search tab now displays the recently posted videos +- Video will display the location on lower left corner \ No newline at end of file diff --git a/lib/components/user_profile.dart b/lib/components/user_profile.dart index 1c37d5a..9b5b5c9 100644 --- a/lib/components/user_profile.dart +++ b/lib/components/user_profile.dart @@ -2,10 +2,10 @@ import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; import 'package:flutter_feather_icons/flutter_feather_icons.dart'; import 'package:spot/app/constants.dart'; +import 'package:spot/components/video_list.dart'; import 'package:spot/cubits/profile/profile_cubit.dart'; import 'package:spot/cubits/videos/videos_cubit.dart'; import 'package:spot/pages/edit_profile_page.dart'; -import 'package:spot/pages/view_video_page.dart'; import 'package:spot/repositories/repository.dart'; import 'profile_image.dart'; @@ -57,40 +57,7 @@ class _UserPosts extends StatelessWidget { return preloader; } else if (state is VideosLoaded) { final videos = state.videos; - return Wrap( - children: List.generate(videos.length, (index) { - final video = videos[index]; - return FractionallySizedBox( - widthFactor: 0.5, - child: AspectRatio( - aspectRatio: 1, - child: GestureDetector( - onTap: () { - Navigator.of(context).push(ViewVideoPage.route(video.id)); - }, - child: Image.network( - video.thumbnailUrl, - fit: BoxFit.cover, - loadingBuilder: (context, child, loadingProgress) { - if (loadingProgress == null) { - return child; - } - return Center( - child: CircularProgressIndicator( - value: loadingProgress.cumulativeBytesLoaded / - (loadingProgress.expectedTotalBytes ?? - 10000000), - valueColor: - const AlwaysStoppedAnimation(appRed), - ), - ); - }, - ), - ), - ), - ); - }), - ); + return VideoList(videos: videos); } else if (state is VideosError) { return const Center( child: Text('Something went wrong. Please reopen the app. '), diff --git a/lib/components/video_list.dart b/lib/components/video_list.dart new file mode 100644 index 0000000..1eb2d8c --- /dev/null +++ b/lib/components/video_list.dart @@ -0,0 +1,47 @@ +import 'package:flutter/material.dart'; +import 'package:spot/app/constants.dart'; +import 'package:spot/models/video.dart'; +import 'package:spot/pages/view_video_page.dart'; + +class VideoList extends StatelessWidget { + const VideoList({ + Key? key, + required this.videos, + }) : super(key: key); + + final List