Skip to content

Commit

Permalink
Refactor search functionality to move closer to the usage area
Browse files Browse the repository at this point in the history
  • Loading branch information
MillerAdulu committed Sep 18, 2024
1 parent a0b0817 commit 25214d2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/bootstrap.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import 'package:fluttercon/features/feed/cubit/share_feed_post_cubit.dart';
import 'package:fluttercon/features/feedback/cubit/send_feedback_cubit.dart';
import 'package:fluttercon/features/home/cubit/fetch_sessions_cubit.dart';
import 'package:fluttercon/features/home/cubit/home_cubits.dart';
import 'package:fluttercon/features/home/cubit/search_cubit.dart';
import 'package:fluttercon/features/sessions/cubit/bookmark_session_cubit.dart';
import 'package:fluttercon/features/sessions/cubit/fetch_grouped_sessions_cubit.dart';
import 'package:fluttercon/firebase_options.dart';
import 'package:fluttercon/search/cubit/search_cubit.dart';

class AppBlocObserver extends BlocObserver {
const AppBlocObserver();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'package:fluttercon/common/data/enums/search_result_type.dart';
import 'package:fluttercon/common/data/models/failure.dart';
import 'package:fluttercon/common/data/models/search_result.dart';
import 'package:fluttercon/common/repository/db_repository.dart';
import 'package:fluttercon/search/cubit/search_state.dart';
import 'package:fluttercon/features/home/cubit/search_state.dart';

class SearchCubit extends Cubit<SearchState> {
SearchCubit({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:fluttercon/common/data/models/search_result.dart';
import 'package:freezed_annotation/freezed_annotation.dart';

part 'search_state.freezed.dart';

@freezed
Expand Down
2 changes: 1 addition & 1 deletion lib/features/home/ui/home_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import 'package:fluttercon/common/utils/constants/app_assets.dart';
import 'package:fluttercon/common/utils/misc.dart';
import 'package:fluttercon/common/widgets/app_bar/app_bar.dart';
import 'package:fluttercon/features/home/widgets/organizers_card.dart';
import 'package:fluttercon/features/home/widgets/search_bar.dart';
import 'package:fluttercon/features/home/widgets/sessions_card.dart';
import 'package:fluttercon/features/home/widgets/speaker_home_card.dart';
import 'package:fluttercon/features/home/widgets/sponsors_card.dart';
import 'package:fluttercon/l10n/l10n.dart';
import 'package:fluttercon/search/ui/widgets/search_bar.dart';

class HomeScreen extends StatefulWidget {
const HomeScreen({super.key, this.switchTab});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import 'package:fluttercon/common/utils/misc.dart';
import 'package:fluttercon/common/utils/router.dart';
import 'package:fluttercon/common/widgets/resolved_image.dart';
import 'package:fluttercon/core/theme/theme_colors.dart';
import 'package:fluttercon/features/home/cubit/search_cubit.dart';
import 'package:fluttercon/features/home/cubit/search_state.dart';
import 'package:fluttercon/l10n/l10n.dart';
import 'package:fluttercon/search/cubit/search_cubit.dart';
import 'package:fluttercon/search/cubit/search_state.dart';
import 'package:go_router/go_router.dart';

class SearchBarWidget extends StatefulWidget {
Expand Down

0 comments on commit 25214d2

Please sign in to comment.