content: // Flutter imports:
  import 'package:flutter/material.dart';
  
  // Package imports:
  import 'package:flutter_riverpod/flutter_riverpod.dart';
  
  // Project imports:
  import '../../../../../foundation/display.dart';
  import '../../../boorus/engine/providers.dart';
  import '../../../configs/config/types.dart';
  import '../../../posts/post/post.dart';
  import '../../../router.dart';
  import 'pages/show_tag_list_page.dart';
  
  Future<bool?> goToShowTaglistPage(
    WidgetRef ref,
    Post post, {
    required BooruConfigAuth auth,
    bool initiallyMultiSelectEnabled = false,
  }) {
    final booruBuilder = ref.read(booruBuilderProvider(auth));
    final viewTagListBuilder = booruBuilder?.viewTagListBuilder;
  
    if (viewTagListBuilder == null) {
      return showAdaptiveSheet(
        ref.context,
        expand: true,
        settings: const RouteSettings(
          name: 'view_tag_list',
        ),
        builder: (context) => ShowTagListPage(
          post: post,
          initiallyMultiSelectEnabled: initiallyMultiSelectEnabled,
          auth: auth,
        ),
      );
    }
  
    return showAdaptiveSheet(
      navigatorKey.currentContext ?? ref.context,
      expand: true,
      settings: const RouteSettings(
        name: 'view_tag_list',
      ),
      builder: (context) => viewTagListBuilder(
        context,
        post,
        initiallyMultiSelectEnabled,
        auth,
      ),
    );
  }
  