Skip to content

Commit

Permalink
screenshots updated
Browse files Browse the repository at this point in the history
  • Loading branch information
tarush-r committed May 3, 2021
1 parent 8bbc53e commit 493c922
Show file tree
Hide file tree
Showing 20 changed files with 45 additions and 5 deletions.
44 changes: 42 additions & 2 deletions chatapp_client/lib/screens/calls_screen.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import 'dart:convert';

import 'package:agora_rtc_engine/rtc_engine.dart';
import 'package:chatapp_client/api/chat_api.dart';
import 'package:chatapp_client/helpers/sharedpreferences_helper.dart';
import 'package:chatapp_client/models/contact_model.dart';
import 'package:chatapp_client/screens/call_screen.dart';
import 'package:chatapp_client/widgets/heading_widget.dart';
import 'package:flutter/material.dart';
import 'package:permission_handler/permission_handler.dart';
import 'package:shared_preferences/shared_preferences.dart';

class CallsScreen extends StatefulWidget {
Expand All @@ -21,6 +24,37 @@ class _CallsScreenState extends State<CallsScreen> {
Map user;
List callLogs;

Future<void> _handleCameraAndMic(Permission permission) async {
final status = await permission.request();
print(status);
}

Future<void> onJoin(String email) async {
print("-----------------");
print(email);
await _handleCameraAndMic(Permission.camera);
await _handleCameraAndMic(Permission.microphone);
// push video page with given channel name
await Navigator.push(
context,
// await Navigator.pushNamed(
// context,
MaterialPageRoute(
builder: (context) => CallPage(
channelName: email,
role: ClientRole.Broadcaster,
),
),
// CallPage.routeName,
// arguments: <String, String>{
// 'email': selectedUser.email,
// 'role': ClientRole.Broadcaster,
// },
);
// );
// }
}

void initState() {
super.initState();

Expand Down Expand Up @@ -49,7 +83,7 @@ class _CallsScreenState extends State<CallsScreen> {
callLogs = json.decode(res.body)['calls'];
print(callLogs);
setState(() {
loading= false;
loading = false;
});
}

Expand Down Expand Up @@ -118,7 +152,13 @@ class _CallsScreenState extends State<CallsScreen> {
),
Row(
children: [
Icon(Icons.video_call),
GestureDetector(
onTap: () {
// sendMessage();
// onJoin();
},
child: Icon(Icons.video_call),
),
SizedBox(
width: 15,
),
Expand Down
4 changes: 2 additions & 2 deletions chatapp_client/lib/screens/view_profile_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class _ViewProfileScreenState extends State<ViewProfileScreen> {
width: 15,
),
Text(
res['number'],
"9382934057",
style: TextStyle(fontSize: 20),
)
],
Expand Down Expand Up @@ -246,7 +246,7 @@ class _ViewProfileScreenState extends State<ViewProfileScreen> {
),
Text(
// user['email'],
res['email'],
"test@email.com",
style: TextStyle(fontSize: 20),
)
],
Expand Down
2 changes: 1 addition & 1 deletion chatapp_client/lib/utils/urls.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ class Urls{

static const String baseUrl =
// "http://10.0.2.2:3000/";
"http://1165c8173a8c.ngrok.io/";
"http://8a1a360687ea.ngrok.io/";

}
Binary file added screenshots/call_logs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/chat_screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/chatlist.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/chatlist_delete_swipe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/chatlist_schedule_swipe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/delete_account.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/forgot_pasword.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/profile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/reset_password.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/scheduler.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/select_date.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/select_time.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/share.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/support.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/verified_contacts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/view_profile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 493c922

Please sign in to comment.