Commit 48e2f3c4 authored by Inomjon's avatar Inomjon

Call cannection to app

parent 76d23890
...@@ -25,43 +25,43 @@ class IncomingCallScreen extends StatelessWidget { ...@@ -25,43 +25,43 @@ class IncomingCallScreen extends StatelessWidget {
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: <Widget>[ children: <Widget>[
Padding( Padding(
padding: EdgeInsets.all(36), padding: const EdgeInsets.all(36),
child: Text(_getCallTitle(), style: TextStyle(fontSize: 28)), child: Text(_getCallTitle(), style: const TextStyle(fontSize: 28)),
), ),
Padding( const Padding(
padding: EdgeInsets.only(top: 36, bottom: 8), padding: EdgeInsets.only(top: 36, bottom: 8),
child: Text("Members:", style: TextStyle(fontSize: 20)), child: Text("Members:", style: TextStyle(fontSize: 20)),
), ),
Padding( Padding(
padding: EdgeInsets.only(bottom: 86), padding: const EdgeInsets.only(bottom: 86),
child: Text(_callSession.opponentsIds.join(", "), child: Text(_callSession.opponentsIds.join(", "),
style: TextStyle(fontSize: 18)), style: const TextStyle(fontSize: 18)),
), ),
Row( Row(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: <Widget>[ children: <Widget>[
Padding( Padding(
padding: EdgeInsets.only(right: 36), padding: const EdgeInsets.only(right: 36),
child: FloatingActionButton( child: FloatingActionButton(
heroTag: "RejectCall", heroTag: "RejectCall",
child: Icon( backgroundColor: Colors.red,
onPressed: () => _rejectCall(context, _callSession),
child: const Icon(
Icons.call_end, Icons.call_end,
color: Colors.white, color: Colors.white,
), ),
backgroundColor: Colors.red,
onPressed: () => _rejectCall(context, _callSession),
), ),
), ),
Padding( Padding(
padding: EdgeInsets.only(left: 36), padding: const EdgeInsets.only(left: 36),
child: FloatingActionButton( child: FloatingActionButton(
heroTag: "AcceptCall", heroTag: "AcceptCall",
backgroundColor: Colors.green,
onPressed: () => _acceptCall(context, _callSession),
child: Icon( child: Icon(
Icons.call, Icons.call,
color: Colors.white, color: Colors.white,
), ),
backgroundColor: Colors.green,
onPressed: () => _acceptCall(context, _callSession),
), ),
), ),
], ],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment