Marathon changes

master
haroon amjad 11 months ago
parent 25de451d3b
commit a2ed4e52f3

@ -3,8 +3,8 @@ import 'package:mohem_flutter_app/ui/marathon/widgets/question_card.dart';
class ApiConsts { class ApiConsts {
//static String baseUrl = "http://10.200.204.20:2801/"; // Local server //static String baseUrl = "http://10.200.204.20:2801/"; // Local server
// static String baseUrl = "https://erptstapp.srca.org.sa"; // SRCA server // static String baseUrl = "https://erptstapp.srca.org.sa"; // SRCA server
// static String baseUrl = "https://uat.hmgwebservices.com"; // UAT ser343622ver // static String baseUrl = "https://uat.hmgwebservices.com"; // UAT ser343622ver
static String baseUrl = "https://hmgwebservices.com"; // Live server static String baseUrl = "https://hmgwebservices.com"; // Live server
static String baseUrlServices = baseUrl + "/Services/"; // server static String baseUrlServices = baseUrl + "/Services/"; // server
// static String baseUrlServices = "https://api.cssynapses.com/tangheem/"; // Live server // static String baseUrlServices = "https://api.cssynapses.com/tangheem/"; // Live server
static String utilitiesRest = baseUrlServices + "Utilities.svc/REST/"; static String utilitiesRest = baseUrlServices + "Utilities.svc/REST/";
@ -36,7 +36,11 @@ class ApiConsts {
static String chatUserImages = chatServerBaseUrl + "empservice/api/employee/"; static String chatUserImages = chatServerBaseUrl + "empservice/api/employee/";
//Brain Marathon Constants //Brain Marathon Constants
static String marathonBaseUrl = "https://marathoon.com/service/api/"; static String marathonBaseUrlLive = "https://marathoon.com/service/api/";
static String marathonBaseUrlUAT = "https://marathoon.com/uatservice/api/";
static String marathonBaseUrl = marathonBaseUrlLive;
// static String marathonBaseUrl = marathonBaseUrlUAT;
static String marathonBaseUrlServices = "https://marathoon.com/service/"; static String marathonBaseUrlServices = "https://marathoon.com/service/";
static String marathonParticipantLoginUrl = marathonBaseUrl + "auth/participantlogin"; static String marathonParticipantLoginUrl = marathonBaseUrl + "auth/participantlogin";
static String marathonProjectGetUrl = marathonBaseUrl + "Project/Project_Get"; static String marathonProjectGetUrl = marathonBaseUrl + "Project/Project_Get";

@ -143,7 +143,7 @@ class _ChatDetailScreenState extends State<ChatDetailScreen> {
dateTime: m.dateFormte(m.userChatHistory[i].createdDate!), dateTime: m.dateFormte(m.userChatHistory[i].createdDate!),
cItem: m.userChatHistory[i], cItem: m.userChatHistory[i],
), ),
onRightSwipe: () { onRightSwipe: (val) {
m.chatReply( m.chatReply(
m.userChatHistory[i], m.userChatHistory[i],
); );

@ -147,7 +147,7 @@ class _GroupChatDetailScreenState extends State<GroupChatDetailScreen> {
dateTime: m.groupChatHistory[i].createdDate!, dateTime: m.groupChatHistory[i].createdDate!,
cItem: m.groupChatHistory[i], cItem: m.groupChatHistory[i],
), ),
onRightSwipe: () { onRightSwipe: (val) {
m.groupChatReply( m.groupChatReply(
m.groupChatHistory[i], m.groupChatHistory[i],
); );

@ -373,7 +373,7 @@ class MarathonProvider extends ChangeNotifier {
void updateCardData() { void updateCardData() {
if (currentQuestionNumber > 0) { if (currentQuestionNumber > 0) {
swiperController.swipeLeft(); // swiperController.swipeLeft();
} }
selectedOptionIndex = null; selectedOptionIndex = null;
currentQuestionNumber++; currentQuestionNumber++;

Loading…
Cancel
Save