add all devices fetch

This commit is contained in:
ashrafzarkanisala
2024-06-23 12:01:06 +03:00
parent 1fe4603cbf
commit b58af41b88
6 changed files with 48 additions and 8 deletions

View File

@ -1,6 +1,5 @@
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:syncrow_app/features/app_layout/bloc/home_cubit.dart';
import 'package:syncrow_app/features/app_layout/view/app_layout.dart';
import 'package:syncrow_app/features/auth/view/otp_view.dart';
import 'package:syncrow_app/features/auth/view/login_view.dart';
@ -78,7 +77,7 @@ class Router {
providers: [
BlocProvider<TabBarBloc>(
create: (BuildContext context) => TabBarBloc()
..add(const TabChanged(selectedIndex: 0, roomId: '')),
..add(const TabChanged(selectedIndex: 0, roomId: '-1')),
),
BlocProvider<DevicesCubit>(
create: (context) => DevicesCubit.getInstance()),