Skip to content

Instantly share code, notes, and snippets.

@gladimdim
Created April 11, 2019 09:51
Show Gist options
  • Save gladimdim/2988139a2c93ce5b1f2a08d1c348e3c5 to your computer and use it in GitHub Desktop.
Save gladimdim/2988139a2c93ce5b1f2a08d1c348e3c5 to your computer and use it in GitHub Desktop.
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