💄 Some changes to improve UX
This commit is contained in:
		| @@ -6,22 +6,19 @@ part of 'call.dart'; | |||||||
| // RiverpodGenerator | // RiverpodGenerator | ||||||
| // ************************************************************************** | // ************************************************************************** | ||||||
|  |  | ||||||
| String _$callNotifierHash() => r'18fb807f067eecd3ea42631c1426c3e5f1fb4280'; | String _$callNotifierHash() => r'eb9bd41b97e9b5e9d54007c8327edb6567458846'; | ||||||
|  |  | ||||||
| /// See also [CallNotifier]. | /// See also [CallNotifier]. | ||||||
| @ProviderFor(CallNotifier) | @ProviderFor(CallNotifier) | ||||||
| final callNotifierProvider = | final callNotifierProvider = NotifierProvider<CallNotifier, CallState>.internal( | ||||||
|     AutoDisposeNotifierProvider<CallNotifier, CallState>.internal( |  | ||||||
|   CallNotifier.new, |   CallNotifier.new, | ||||||
|   name: r'callNotifierProvider', |   name: r'callNotifierProvider', | ||||||
|   debugGetCreateSourceHash: |   debugGetCreateSourceHash: | ||||||
|           const bool.fromEnvironment('dart.vm.product') |       const bool.fromEnvironment('dart.vm.product') ? null : _$callNotifierHash, | ||||||
|               ? null |  | ||||||
|               : _$callNotifierHash, |  | ||||||
|   dependencies: null, |   dependencies: null, | ||||||
|   allTransitiveDependencies: null, |   allTransitiveDependencies: null, | ||||||
| ); | ); | ||||||
|  |  | ||||||
| typedef _$CallNotifier = AutoDisposeNotifier<CallState>; | typedef _$CallNotifier = Notifier<CallState>; | ||||||
| // ignore_for_file: type=lint | // ignore_for_file: type=lint | ||||||
| // ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package | // ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package | ||||||
|   | |||||||
| @@ -339,14 +339,16 @@ class _AccountPublisherList extends StatelessWidget { | |||||||
|           for (final publisher in publishers) |           for (final publisher in publishers) | ||||||
|             ListTile( |             ListTile( | ||||||
|               title: Text(publisher.nick), |               title: Text(publisher.nick), | ||||||
|               subtitle: |               subtitle: Text( | ||||||
|                 publisher.bio.isNotEmpty |                 publisher.bio.isNotEmpty | ||||||
|                       ? Text( |                     ? publisher.bio | ||||||
|                         publisher.bio, |                         .split('\n') | ||||||
|  |                         .where((line) => line.trim().isNotEmpty) | ||||||
|  |                         .join('\n') | ||||||
|  |                     : 'descriptionNone'.tr(), | ||||||
|                 maxLines: 3, |                 maxLines: 3, | ||||||
|                 overflow: TextOverflow.ellipsis, |                 overflow: TextOverflow.ellipsis, | ||||||
|                       ) |               ), | ||||||
|                       : null, |  | ||||||
|               leading: ProfilePictureWidget( |               leading: ProfilePictureWidget( | ||||||
|                 file: publisher.picture, |                 file: publisher.picture, | ||||||
|                 borderRadius: publisher.type == 1 ? 8 : null, |                 borderRadius: publisher.type == 1 ? 8 : null, | ||||||
|   | |||||||
| @@ -6,6 +6,7 @@ import 'package:island/models/post.dart'; | |||||||
| import 'package:island/pods/network.dart'; | import 'package:island/pods/network.dart'; | ||||||
| import 'package:island/pods/userinfo.dart'; | import 'package:island/pods/userinfo.dart'; | ||||||
| import 'package:island/widgets/app_scaffold.dart'; | import 'package:island/widgets/app_scaffold.dart'; | ||||||
|  | import 'package:island/widgets/extended_refresh_indicator.dart'; | ||||||
| import 'package:island/widgets/post/post_item.dart'; | import 'package:island/widgets/post/post_item.dart'; | ||||||
| import 'package:island/widgets/post/post_quick_reply.dart'; | import 'package:island/widgets/post/post_quick_reply.dart'; | ||||||
| import 'package:island/widgets/post/post_replies.dart'; | import 'package:island/widgets/post/post_replies.dart'; | ||||||
| @@ -66,7 +67,13 @@ class PostDetailScreen extends HookConsumerWidget { | |||||||
|           return Stack( |           return Stack( | ||||||
|             fit: StackFit.expand, |             fit: StackFit.expand, | ||||||
|             children: [ |             children: [ | ||||||
|               CustomScrollView( |               ExtendedRefreshIndicator( | ||||||
|  |                 onRefresh: () async { | ||||||
|  |                   ref.invalidate(postProvider(id)); | ||||||
|  |                   ref.invalidate(postRepliesNotifierProvider(id)); | ||||||
|  |                 }, | ||||||
|  |                 child: CustomScrollView( | ||||||
|  |                   physics: const AlwaysScrollableScrollPhysics(), | ||||||
|                   slivers: [ |                   slivers: [ | ||||||
|                     SliverToBoxAdapter( |                     SliverToBoxAdapter( | ||||||
|                       child: Center( |                       child: Center( | ||||||
| @@ -90,6 +97,7 @@ class PostDetailScreen extends HookConsumerWidget { | |||||||
|                     SliverGap(MediaQuery.of(context).padding.bottom + 80), |                     SliverGap(MediaQuery.of(context).padding.bottom + 80), | ||||||
|                   ], |                   ], | ||||||
|                 ), |                 ), | ||||||
|  |               ), | ||||||
|               if (user.value != null) |               if (user.value != null) | ||||||
|                 Positioned( |                 Positioned( | ||||||
|                   bottom: 0, |                   bottom: 0, | ||||||
| @@ -126,7 +134,7 @@ class PostDetailScreen extends HookConsumerWidget { | |||||||
|         error: |         error: | ||||||
|             (e, _) => ResponseErrorWidget( |             (e, _) => ResponseErrorWidget( | ||||||
|               error: e, |               error: e, | ||||||
|               onRetry: () => ref.invalidate(postStateProvider(id)), |               onRetry: () => ref.invalidate(postProvider(id)), | ||||||
|             ), |             ), | ||||||
|       ), |       ), | ||||||
|     ); |     ); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user