|
|
|
|
@ -102,7 +102,7 @@ class _OutGoingCallState extends State<OutGoingCall> with SingleTickerProviderSt
|
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
|
),
|
|
|
|
|
10.height,
|
|
|
|
|
Text(
|
|
|
|
|
const Text(
|
|
|
|
|
"Aamir Saleem Ahmad",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 21,
|
|
|
|
|
@ -112,7 +112,7 @@ class _OutGoingCallState extends State<OutGoingCall> with SingleTickerProviderSt
|
|
|
|
|
height: 23 / 12,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Text(
|
|
|
|
|
const Text(
|
|
|
|
|
"Ringing...",
|
|
|
|
|
style: TextStyle(
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
@ -124,7 +124,7 @@ class _OutGoingCallState extends State<OutGoingCall> with SingleTickerProviderSt
|
|
|
|
|
height: 23 / 24,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
const SizedBox(
|
|
|
|
|
height: 2,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
@ -177,96 +177,54 @@ class _OutGoingCallState extends State<OutGoingCall> with SingleTickerProviderSt
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
|
children: <Widget>[
|
|
|
|
|
if (widget.isVideoCall!)
|
|
|
|
|
RotationTransition(
|
|
|
|
|
turns: Tween(
|
|
|
|
|
begin: 0.0,
|
|
|
|
|
end: -.1,
|
|
|
|
|
)
|
|
|
|
|
.chain(
|
|
|
|
|
CurveTween(
|
|
|
|
|
curve: Curves.elasticIn,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
.animate(
|
|
|
|
|
_animationController!,
|
|
|
|
|
),
|
|
|
|
|
child: RawMaterialButton(
|
|
|
|
|
onPressed: () {
|
|
|
|
|
_camOff();
|
|
|
|
|
},
|
|
|
|
|
elevation: 2.0,
|
|
|
|
|
fillColor: isCamOff ? MyColors.green2DColor : Colors.grey,
|
|
|
|
|
padding: const EdgeInsets.all(
|
|
|
|
|
15.0,
|
|
|
|
|
),
|
|
|
|
|
shape: const CircleBorder(),
|
|
|
|
|
child: Icon(
|
|
|
|
|
isCamOff ? Icons.videocam_off : Icons.videocam,
|
|
|
|
|
color: MyColors.white,
|
|
|
|
|
size: 35.0,
|
|
|
|
|
),
|
|
|
|
|
RawMaterialButton(
|
|
|
|
|
onPressed: () {
|
|
|
|
|
_camOff();
|
|
|
|
|
},
|
|
|
|
|
elevation: 2.0,
|
|
|
|
|
fillColor: isCamOff ? MyColors.green2DColor : Colors.grey,
|
|
|
|
|
padding: const EdgeInsets.all(
|
|
|
|
|
15.0,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
else
|
|
|
|
|
RotationTransition(
|
|
|
|
|
turns: Tween(
|
|
|
|
|
begin: 0.0,
|
|
|
|
|
end: -.1,
|
|
|
|
|
)
|
|
|
|
|
.chain(
|
|
|
|
|
CurveTween(
|
|
|
|
|
curve: Curves.elasticIn,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
.animate(
|
|
|
|
|
_animationController!,
|
|
|
|
|
),
|
|
|
|
|
child: RawMaterialButton(
|
|
|
|
|
onPressed: () {
|
|
|
|
|
_loudOn();
|
|
|
|
|
},
|
|
|
|
|
elevation: 2.0,
|
|
|
|
|
fillColor: isLoudSpeaker ? MyColors.green2DColor : Colors.grey,
|
|
|
|
|
padding: const EdgeInsets.all(
|
|
|
|
|
15.0,
|
|
|
|
|
),
|
|
|
|
|
shape: const CircleBorder(),
|
|
|
|
|
child: const Icon(
|
|
|
|
|
Icons.volume_up,
|
|
|
|
|
color: MyColors.white,
|
|
|
|
|
size: 35.0,
|
|
|
|
|
),
|
|
|
|
|
shape: const CircleBorder(),
|
|
|
|
|
child: Icon(
|
|
|
|
|
isCamOff ? Icons.videocam_off : Icons.videocam,
|
|
|
|
|
color: MyColors.white,
|
|
|
|
|
size: 35.0,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
RotationTransition(
|
|
|
|
|
turns: Tween(
|
|
|
|
|
begin: 0.0,
|
|
|
|
|
end: -.1,
|
|
|
|
|
)
|
|
|
|
|
.chain(
|
|
|
|
|
CurveTween(
|
|
|
|
|
curve: Curves.elasticIn,
|
|
|
|
|
),
|
|
|
|
|
)
|
|
|
|
|
.animate(
|
|
|
|
|
_animationController!,
|
|
|
|
|
),
|
|
|
|
|
child: RawMaterialButton(
|
|
|
|
|
else
|
|
|
|
|
RawMaterialButton(
|
|
|
|
|
onPressed: () {
|
|
|
|
|
_micOff();
|
|
|
|
|
_loudOn();
|
|
|
|
|
},
|
|
|
|
|
elevation: 2.0,
|
|
|
|
|
fillColor: isMicOff ? MyColors.green2DColor : Colors.grey,
|
|
|
|
|
fillColor: isLoudSpeaker ? MyColors.green2DColor : Colors.grey,
|
|
|
|
|
padding: const EdgeInsets.all(
|
|
|
|
|
15.0,
|
|
|
|
|
),
|
|
|
|
|
shape: const CircleBorder(),
|
|
|
|
|
child: Icon(
|
|
|
|
|
isMicOff ? Icons.mic_off : Icons.mic,
|
|
|
|
|
child: const Icon(
|
|
|
|
|
Icons.volume_up,
|
|
|
|
|
color: MyColors.white,
|
|
|
|
|
size: 35.0,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
RawMaterialButton(
|
|
|
|
|
onPressed: () {
|
|
|
|
|
_micOff();
|
|
|
|
|
},
|
|
|
|
|
elevation: 2.0,
|
|
|
|
|
fillColor: isMicOff ? MyColors.green2DColor : Colors.grey,
|
|
|
|
|
padding: const EdgeInsets.all(
|
|
|
|
|
15.0,
|
|
|
|
|
),
|
|
|
|
|
shape: const CircleBorder(),
|
|
|
|
|
child: Icon(
|
|
|
|
|
isMicOff ? Icons.mic_off : Icons.mic,
|
|
|
|
|
color: MyColors.white,
|
|
|
|
|
size: 35.0,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
RawMaterialButton(
|
|
|
|
|
onPressed: () {
|
|
|
|
|
|