[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.

Fixed the description, now it has a variable height (#32)

Fixed the comments.

authored by

C3B and committed by
GitHub
45ae3f98 259cca1b

+14 -4
+1
lib/main.dart
··· 93 93 ], 94 94 child: MaterialApp( 95 95 title: 'Spark', 96 + debugShowCheckedModeBanner: false, 96 97 theme: ThemeData( 97 98 primaryColor: AppColors.primary, 98 99 scaffoldBackgroundColor: Colors.black,
+4
lib/widgets/video_info/video_description.dart
··· 51 51 52 52 @override 53 53 Widget build(BuildContext context) { 54 + if (widget.text.isEmpty) { 55 + return const SizedBox.shrink(); 56 + } 57 + 54 58 return GestureDetector( 55 59 onTap: _toggleExpanded, 56 60 child: AnimatedBuilder(
+9 -4
lib/widgets/video_info/video_info_bar.dart
··· 30 30 31 31 @override 32 32 Widget build(BuildContext context) { 33 + final hasDescription = description.isNotEmpty; 34 + final hasHashtags = hashtags.isNotEmpty; 35 + 33 36 return Column( 34 37 crossAxisAlignment: CrossAxisAlignment.start, 35 38 children: [ ··· 41 44 ], 42 45 ), 43 46 44 - const SizedBox(height: 10), 45 - 47 + if (hasDescription) const SizedBox(height: 10), 48 + 46 49 VideoDescription(text: description, onExpandToggle: onDescriptionExpandToggle), 47 50 48 - const SizedBox(height: 6), 51 + if (hasDescription && hasHashtags) const SizedBox(height: 6), 52 + 53 + if (hasHashtags) SizedBox(height: 25, child: HashtagList(hashtags: hashtags, onHashtagTap: onHashtagTap)), 49 54 50 - SizedBox(height: 30, child: HashtagList(hashtags: hashtags, onHashtagTap: onHashtagTap)), 55 + const SizedBox(height: 25), 51 56 ], 52 57 ); 53 58 }