change colors and lottie
1
assets/animations/NO Favorite.json
Normal file
1
assets/animations/Wifi.json
Normal file
1
assets/animations/folder.json
Normal file
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 533 B After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 927 B |
|
|
@ -1,3 +1,5 @@
|
|||
// ignore_for_file: invalid_use_of_protected_member
|
||||
|
||||
import 'dart:io';
|
||||
import 'package:audio_waveforms/audio_waveforms.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
|
@ -49,26 +51,22 @@ class NewVoiceMessage extends StatelessWidget {
|
|||
onDismissed: null,
|
||||
child: SizedBox(
|
||||
width: Get.width * 0.6,
|
||||
height: 90,
|
||||
height: 70,
|
||||
child: Container(
|
||||
decoration: BoxDecoration(
|
||||
borderRadius:
|
||||
(messageModel.direction == MessageDirection.received)
|
||||
? BorderRadius.circular(10)
|
||||
: null,
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
color: (messageModel.direction == MessageDirection.received)
|
||||
? Colors.white
|
||||
: null,
|
||||
image: (messageModel.direction == MessageDirection.sent)
|
||||
? const DecorationImage(
|
||||
image: AssetImage('assets/images/sent message.png'),
|
||||
fit: BoxFit.fill)
|
||||
: null),
|
||||
: AppColors.sentMessageColor,
|
||||
// image: (messageModel.direction == MessageDirection.sent)
|
||||
// ? const DecorationImage(
|
||||
// image: AssetImage('assets/images/sent message.png'),
|
||||
// fit: BoxFit.fill)
|
||||
// : null
|
||||
),
|
||||
child: SizedBox(
|
||||
width: Get.width,
|
||||
height: (messageModel.direction == MessageDirection.received)
|
||||
? 100
|
||||
: null,
|
||||
height: 70,
|
||||
child: Column(
|
||||
crossAxisAlignment:
|
||||
(messageModel.direction == MessageDirection.received)
|
||||
|
|
@ -99,7 +97,7 @@ class NewVoiceMessage extends StatelessWidget {
|
|||
: AppColors.borderColor,
|
||||
),
|
||||
),
|
||||
).paddingOnly(left: 16, top: 16),
|
||||
).paddingOnly(left: 16, top: 0),
|
||||
);
|
||||
}),
|
||||
Obx(() {
|
||||
|
|
@ -142,7 +140,7 @@ class NewVoiceMessage extends StatelessWidget {
|
|||
chatController.updateIsLoading(
|
||||
messageModel.content, false);
|
||||
}),
|
||||
).paddingOnly(left: 16, top: 16),
|
||||
).paddingOnly(left: 16, top: 0),
|
||||
);
|
||||
}),
|
||||
Obx(() {
|
||||
|
|
@ -168,7 +166,7 @@ class NewVoiceMessage extends StatelessWidget {
|
|||
|
||||
await playerController.pausePlayer();
|
||||
}),
|
||||
).paddingOnly(left: 16, top: 16),
|
||||
).paddingOnly(left: 16, top: 0),
|
||||
);
|
||||
}),
|
||||
Obx(() {
|
||||
|
|
@ -301,12 +299,11 @@ class NewVoiceMessage extends StatelessWidget {
|
|||
? 8
|
||||
: 0,
|
||||
),
|
||||
if (messageModel.direction == MessageDirection.sent)
|
||||
const SizedBox(
|
||||
height: 16,
|
||||
),
|
||||
],
|
||||
),
|
||||
).paddingOnly(
|
||||
top: (messageModel.direction == MessageDirection.sent)
|
||||
? 8
|
||||
: 0),
|
||||
).align(
|
||||
alignment: (messageModel.direction == MessageDirection.received)
|
||||
? Alignment.centerLeft
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
import 'dart:developer';
|
||||
|
||||
import 'package:taafee_mobile/core/apis/apis.dart';
|
||||
import 'package:taafee_mobile/core/network/http.dart';
|
||||
import '../model/params.dart';
|
||||
|
|
@ -8,7 +10,7 @@ class SplashSource {
|
|||
Request(EndPoint.params, RequestMethod.get, cacheable: true);
|
||||
var response =
|
||||
await request.sendRequest(onConnectionError: onConnectionError);
|
||||
print('my response $response');
|
||||
log('my response $response');
|
||||
return Params.fromJson(response['data']);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,17 +7,18 @@ import 'package:open_store/open_store.dart';
|
|||
import 'package:taafee_mobile/common/extensions/widget_extension.dart';
|
||||
import 'package:taafee_mobile/core/local_storage/local_storage.dart';
|
||||
import 'package:taafee_mobile/core/routing/routing_manager.dart';
|
||||
import 'package:taafee_mobile/core/url%20launcher/url_launcher_service.dart';
|
||||
// import 'package:taafee_mobile/core/url%20launcher/url_launcher_service.dart';
|
||||
import 'package:taafee_mobile/features/auth/business_logic_layer/auth_controller.dart';
|
||||
import 'package:taafee_mobile/features/auth/presentation_layer/widgets/tail_auth.dart';
|
||||
// import 'package:taafee_mobile/features/auth/presentation_layer/widgets/tail_auth.dart';
|
||||
import 'package:taafee_mobile/features/home/business_logic_layer/home_controller.dart';
|
||||
import 'package:taafee_mobile/features/splash/business_logic_layer/splash_controller.dart';
|
||||
import 'package:url_launcher/url_launcher.dart';
|
||||
// import 'package:url_launcher/url_launcher.dart';
|
||||
|
||||
import '../../../../common/const/const.dart';
|
||||
import '../../../../common/widgets/text.dart';
|
||||
import '../../../../common/widgets/toast.dart';
|
||||
import '../../../auth/data_layer/model/user.dart';
|
||||
import '../../../auth/presentation_layer/widgets/tail_auth.dart';
|
||||
|
||||
class SplashScreen extends StatelessWidget {
|
||||
SplashScreen({super.key});
|
||||
|
|
@ -60,9 +61,8 @@ class SplashScreen extends StatelessWidget {
|
|||
children: [
|
||||
Container().expanded(2),
|
||||
SvgPicture.asset('assets/icons/tafee icon.svg'),
|
||||
// Image.asset("assets/images/logo.png").expanded(4),
|
||||
Container().expanded(2),
|
||||
// const TailAuth().expanded(2),
|
||||
const TailAuth().expanded(4),
|
||||
],
|
||||
),
|
||||
Center(
|
||||
|
|
|
|||