Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat(calls): add calls UI #80

Merged
merged 5 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
.pub/
build/
flutter_*.png
*.g.dart

# IDE related files (optional)
.idea/
Expand Down
83 changes: 0 additions & 83 deletions lib/core/models/chat_model.g.dart

This file was deleted.

53 changes: 0 additions & 53 deletions lib/core/models/contact_model.g.dart

This file was deleted.

80 changes: 0 additions & 80 deletions lib/core/models/message_model.g.dart

This file was deleted.

92 changes: 0 additions & 92 deletions lib/core/models/user_model.g.dart

This file was deleted.

10 changes: 10 additions & 0 deletions lib/core/routes/routes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:go_router/go_router.dart';
import 'package:telware_cross_platform/core/models/chat_model.dart';
import 'package:telware_cross_platform/core/models/user_model.dart';

import 'package:telware_cross_platform/core/view/screen/splash_screen.dart';
import 'package:telware_cross_platform/features/auth/view/screens/change_number_form_screen.dart';
Expand All @@ -12,6 +13,7 @@ import 'package:telware_cross_platform/features/auth/view/screens/sign_up_screen
import 'package:telware_cross_platform/features/auth/view/screens/social_auth_loading_screen.dart';
import 'package:telware_cross_platform/features/auth/view/screens/verification_screen.dart';
import 'package:telware_cross_platform/features/auth/view_model/auth_view_model.dart';
import 'package:telware_cross_platform/features/chat/view/screens/call_screen.dart';
import 'package:telware_cross_platform/features/chat/view/screens/chat_info_screen.dart';
import 'package:telware_cross_platform/features/chat/view/screens/chat_screen.dart';
import 'package:telware_cross_platform/features/chat/view/screens/create_chat_screen.dart';
Expand Down Expand Up @@ -74,6 +76,7 @@ class Routes {
static const String createChatScreen = CreateChatScreen.route;
static const String chatInfoScreen = ChatInfoScreen.route;
static const String createGroupScreen = CreateGroupScreen.route;
static const String callScreen = CallScreen.route;

static GoRouter appRouter(WidgetRef ref) => GoRouter(
initialLocation: Routes.splash,
Expand Down Expand Up @@ -282,6 +285,13 @@ class Routes {
path: Routes.createGroupScreen,
builder: (context, state) => const CreateGroupScreen(),
),
GoRoute(
path: Routes.callScreen,
builder: (context, state) {
final UserModel? userModel = state.extra as UserModel?;
return CallScreen(callee: userModel);
},
),
],
);

Expand Down
2 changes: 1 addition & 1 deletion lib/core/theme/dimensions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Dimensions {
static const double fontSizeP = 16;
static const double fontSizeTitle = 18;
static const double splashIconSize = 170.0;
static const double sectionGaps = 10;
static const double sectionGaps = 13;
static const double optionsVerticalPad = 3.5;
static const double optionsHorizontalPad = 18;
}
Loading
Loading