mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Add hang up button
This commit is contained in:
		@@ -178,7 +178,7 @@ class _CallScreenState extends SafeState<CallScreen> {
 | 
			
		||||
    if (_membersList == null) return buildCenteredProgressBar();
 | 
			
		||||
 | 
			
		||||
    return Column(
 | 
			
		||||
      children: <Widget>[_buildMembersArea()],
 | 
			
		||||
      children: <Widget>[_buildMembersArea(), Spacer(), _buildFooterArea()],
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
@@ -200,4 +200,21 @@ class _CallScreenState extends SafeState<CallScreen> {
 | 
			
		||||
      ),
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /// Footer area
 | 
			
		||||
  Widget _buildFooterArea() {
 | 
			
		||||
    return Material(
 | 
			
		||||
      color: Colors.black,
 | 
			
		||||
      child: Row(
 | 
			
		||||
        mainAxisAlignment: MainAxisAlignment.center,
 | 
			
		||||
        children: <Widget>[
 | 
			
		||||
          // Hang up call
 | 
			
		||||
          IconButton(
 | 
			
		||||
            icon: Icon(Icons.phone, color: Colors.red),
 | 
			
		||||
            onPressed: () => _leaveCall(),
 | 
			
		||||
          ),
 | 
			
		||||
        ],
 | 
			
		||||
      ),
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user