🎨 Continued to rearrange core folders content

This commit is contained in:
2026-02-06 00:57:17 +08:00
parent 862e3b451b
commit dfcbfcb31e
154 changed files with 259 additions and 269 deletions

View File

@@ -6,7 +6,7 @@ import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:in_app_review/in_app_review.dart';
import 'package:island/auth/web_auth/web_auth_providers.dart';
import 'package:island/notifications/notification.dart';
import 'package:island/thought/thought/think_sheet.dart';
import 'package:island/thoughts/think_sheet.dart';
import 'package:protocol_handler/protocol_handler.dart';
import 'package:island/activity/activity_rpc.dart';
import 'package:island/core/config.dart';
@@ -18,8 +18,8 @@ import 'package:island/settings/tray_manager.dart';
import 'package:island/core/services/notify.dart';
import 'package:island/core/services/sharing_intent.dart';
import 'package:island/core/services/update_service.dart';
import 'package:island/core/widgets/content/network_status_sheet.dart';
import 'package:island/core/tour/tour.dart';
import 'package:island/drive/content/network_status_sheet.dart';
import 'package:island/shared/tour/tour.dart';
import 'package:island/posts/posts_widgets/compose_sheet.dart';
import 'package:island/core/services/event_bus.dart';
import 'package:snow_fall_animation/snow_fall_animation.dart';

View File

@@ -6,8 +6,8 @@ import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:island/drive/drive_models/file.dart';
import 'package:island/drive/drive_models/file_pool.dart';
import 'package:island/drive/drive/file_pool.dart';
import 'package:island/core/widgets/content/attachment_preview.dart';
import 'package:island/core/widgets/content/sheet.dart';
import 'package:island/drive/content/attachment_preview.dart';
import 'package:island/drive/content/sheet_scaffold.dart';
import 'package:easy_localization/easy_localization.dart';
import 'package:gap/gap.dart';
import 'package:island/posts/posts_widgets/post/compose_shared.dart';

View File

@@ -0,0 +1,30 @@
import 'package:flutter/material.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:go_router/go_router.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
import 'package:island/settings/tabs_screen.dart';
import 'package:island/core/services/responsive.dart';
class ConditionalBottomNav extends HookConsumerWidget {
final Widget child;
const ConditionalBottomNav({super.key, required this.child});
@override
Widget build(BuildContext context, WidgetRef ref) {
final currentLocation = GoRouterState.of(context).uri.toString();
// Force rebuild when route changes
useEffect(() {
// This effect will run whenever currentLocation changes
return null;
}, [currentLocation]);
final routes = kTabRoutes.sublist(
0,
isWideScreen(context) ? null : kWideScreenRouteStart,
);
final shouldShowBottomNav = routes.contains(currentLocation);
return shouldShowBottomNav ? child : const SizedBox.shrink();
}
}