Skip to content

Instantly share code, notes, and snippets.

View pharmacy_input.dart
import 'package:components/api/graphql_api.dart';
import 'package:components/base/base_circular_loading.dart';
import 'package:components/base/show_bottom_sheet.dart';
import 'package:components/events/event_sender.dart';
import 'package:components/rect/field/const.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_keyboard_visibility/flutter_keyboard_visibility.dart';
import 'package:provider/provider.dart';
View notifications_view.dart
import 'package:components/api/graphql_api.dart';
import 'package:components/events/event_sender.dart';
import 'package:components/rect/field/const.dart';
import 'package:components/utils/date.dart';
import 'package:components/utils/log_service.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';
import 'package:provider/provider.dart';
import 'package:rect_getter/rect_getter.dart';
View notifications_repository.dart
import 'package:components/api/graphql_api.dart';
import 'package:components/model/request_result_model.dart';
import 'package:components/utils/log_service.dart';
import 'notification.dart';
abstract class NotificationsRepository {
NotificationsRepository();
View view_model_provider.dart
import 'package:components/base/base_viewmodel.dart';
const registrationKey = 'registrationKey';
const loginKey = 'loginKey';
const forgotPasswordKey = 'forgotPasswordKey';
const homeKey = 'homeKey';
const servicesKey = 'servicesKey';
const inboxKey = 'inboxKey';
const visitsKey = 'visitsKey';
const notificationKey = 'notificationKey';
View notifications_viewmodel.dart
import 'package:components/api/graphql_api.dart';
import 'package:components/base/base_viewmodel.dart';
import 'package:components/events/event_sender.dart';
import 'package:components/model/request_result_model.dart';
import 'package:rxdart/rxdart.dart';
import 'notification.dart';
import 'notifications_repository.dart';
enum NotificationsViewEvent { requestUpdateRead, onNotificationTap }
View base_viewmodel.dart
import 'package:flutter/material.dart';
import 'package:rxdart/rxdart.dart';
import '../api/graphql_api.dart';
import '../events/event_sender.dart';
// T - items
// E - events for UI
// S - events from server
View gist:be983d549440a371e1bd207b639dc4d5
[log] --------------------------------------------------------
2021-05-19 12:05:10.888546Z
DURATION: 0:00:00.297466
REQUEST:
sending time: 2021-05-19 12:05:10.591026Z
query: {"reqType":"graphql","reqId":"72b33bc8-fd2d-4fcf-9c38-b9a60c0cc0ea","graphqlParams":{"query": "mutation { message0: chatMarkAsRead(channelId: \"399efd10-893a-4acf-9ddd-8be454671add\", messageId: \"706f877d-b89a-11eb-979b-661fb03e1947\" )\n }"},"ctx":{"processId":null}}
RESPONSE:
receiving time: 2021-05-19 12:05:10.888492Z
View gist:96c46477024b23af4b6fa641f8b43b74
REQUEST:
sending time: 2021-05-18 17:15:55.187682Z
query: {"reqType":"graphql","reqId":"a566132b-25fe-4713-9cc3-d00a7d2050d3","graphqlParams":{"query": "mutation { endCall(callId: \"d84f6f3f-0cf5-445d-97de-a2d1702be2ab\", channelId: \"d84f6f3f-0cf5-445d-97de-a2d1702be2ab\", recipients: []) }"},"ctx":{"processId":null,"geolocation":{"latitude":37.785834,"longitude":-122.406417,"altitude":0}}}
RESPONSE:
receiving time: 2021-05-18 17:15:55.368046Z
messages: {"message":"OK","statusCode":200,"ctx":{"workflow":"graphql","action":"query","processId":"b4866241-b7fc-11eb-b4ea-52c618ac679f","actionId":"b4866243-b7fc-11eb-b4ea-52c618ac679f"},"reqId":"a566132b-25fe-4713-9cc3-d00a7d2050d3","dataType":"graphql","data":{"errors":[{"message":"redigo: nil returned","path":["endCall"]}],"data":null},"host":"apisvr-894b5bfc-7gnvp","tm":1621358155333}
--------------------------------------------------------
[log] --------------------------------------------------------
View gist:63e78c8bf112c33cbd1bbbb82f1c14fc
Launching lib/main.dart on iPhone SE in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: 68D5XVDAA2
Running Xcode build...
Xcode build done. 30,0s
Installing and launching...
(lldb) 2021-05-18 17:14:03.762228+0300 neeka-patient[1987:107308] 7.11.0 - [Firebase/Core][I-COR000005] No app has been configured yet.
[Firebase/Crashlytics] Version 7.11.0
database path: /var/containers/Bundle/Application/5F142D03-D5BA-41CC-AC49-9D507DCD9615/neeka-patient.app/Frameworks/flutter_downloader.framework/FlutterDownloaderDatabase.bundle/download_tasks.sql
MAXIMUM_CONCURRENT_TASKS = 3
init NSURLSession with id: com.neekahealth.patientapp.download.background.1621347243.941069
View Exception: call 463946d8-8655-496a-86c9-37441ed42196 is not active
[log] --------------------------------------------------------
2021-05-18 06:24:48.976553Z
DURATION: 0:00:00.198296
REQUEST:
sending time: 2021-05-18 06:24:48.777682Z
query: {"reqType":"graphql","reqId":"623c3ff1-7f77-4e51-ac9c-8a8171f9fccd","graphqlParams":{"query": "query { checkCall(callId: \"463946d8-8655-496a-86c9-37441ed42196\") }"},"ctx":{"processId":null,"geolocation":{"latitude":45.0425026,"longitude":41.9891908,"altitude":531}}}
RESPONSE:
receiving time: 2021-05-18 06:24:48.975978Z