Created
April 11, 2019 09:51
-
-
Save gladimdim/2988139a2c93ce5b1f2a08d1c348e3c5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Widget _buildResponderView(Responder responder) { | |
return Padding( | |
padding: const EdgeInsets.all(8.0), | |
child: Column( | |
mainAxisAlignment: MainAxisAlignment.start, | |
children: [ | |
Text( | |
responder.name, | |
style: TextStyle( | |
color: responder.isBusy() ? Colors.red : Colors.green, | |
fontWeight: FontWeight.bold | |
), | |
), | |
IconButton( | |
icon: Icon(Icons.call_end), | |
onPressed: responder.isBusy() ? responder.endCurrentCall : null, | |
) | |
]), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment