use textbutton
This commit is contained in:
@@ -202,24 +202,26 @@ class GiphyAttachment extends AttachmentWidget {
|
|||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
child: FlatButton(
|
child: Container(
|
||||||
height: 50,
|
height: 50,
|
||||||
onPressed: () {
|
child: TextButton(
|
||||||
streamChannel.channel.sendAction(message, {
|
onPressed: () {
|
||||||
'image_action': 'cancel',
|
streamChannel.channel.sendAction(message, {
|
||||||
});
|
'image_action': 'cancel',
|
||||||
},
|
});
|
||||||
child: Text(
|
},
|
||||||
'Cancel',
|
child: Text(
|
||||||
style: StreamChatTheme.of(context)
|
'Cancel',
|
||||||
.textTheme
|
style: StreamChatTheme.of(context)
|
||||||
.bodyBold
|
.textTheme
|
||||||
.copyWith(
|
.bodyBold
|
||||||
color: StreamChatTheme.of(context)
|
.copyWith(
|
||||||
.colorTheme
|
color: StreamChatTheme.of(context)
|
||||||
.black
|
.colorTheme
|
||||||
.withOpacity(0.5),
|
.black
|
||||||
),
|
.withOpacity(0.5),
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -232,20 +234,22 @@ class GiphyAttachment extends AttachmentWidget {
|
|||||||
height: 50.0,
|
height: 50.0,
|
||||||
),
|
),
|
||||||
Expanded(
|
Expanded(
|
||||||
child: FlatButton(
|
child: Container(
|
||||||
height: 50,
|
height: 50,
|
||||||
onPressed: () {
|
child: TextButton(
|
||||||
streamChannel.channel.sendAction(message, {
|
onPressed: () {
|
||||||
'image_action': 'send',
|
streamChannel.channel.sendAction(message, {
|
||||||
});
|
'image_action': 'send',
|
||||||
},
|
});
|
||||||
child: Text(
|
},
|
||||||
'Send',
|
child: Text(
|
||||||
style: TextStyle(
|
'Send',
|
||||||
color: StreamChatTheme.of(context)
|
style: TextStyle(
|
||||||
.colorTheme
|
color: StreamChatTheme.of(context)
|
||||||
.accentBlue,
|
.colorTheme
|
||||||
fontWeight: FontWeight.bold),
|
.accentBlue,
|
||||||
|
fontWeight: FontWeight.bold),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -284,7 +284,7 @@ class _ChannelListViewState extends State<ChannelListView> {
|
|||||||
left: 0,
|
left: 0,
|
||||||
bottom: 32,
|
bottom: 32,
|
||||||
child: Center(
|
child: Center(
|
||||||
child: FlatButton(
|
child: TextButton(
|
||||||
onPressed: widget.onStartChatPressed,
|
onPressed: widget.onStartChatPressed,
|
||||||
child: Text(
|
child: Text(
|
||||||
'Start a chat',
|
'Start a chat',
|
||||||
@@ -445,7 +445,7 @@ class _ChannelListViewState extends State<ChannelListView> {
|
|||||||
),
|
),
|
||||||
style: Theme.of(context).textTheme.headline6,
|
style: Theme.of(context).textTheme.headline6,
|
||||||
),
|
),
|
||||||
FlatButton(
|
TextButton(
|
||||||
onPressed: () => _channelListController.loadData(),
|
onPressed: () => _channelListController.loadData(),
|
||||||
child: Text('Retry'),
|
child: Text('Retry'),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -348,7 +348,7 @@ class _MessageActionsModalState extends State<MessageActionsModal> {
|
|||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
'OK',
|
'OK',
|
||||||
style: StreamChatTheme.of(context)
|
style: StreamChatTheme.of(context)
|
||||||
@@ -413,7 +413,7 @@ class _MessageActionsModalState extends State<MessageActionsModal> {
|
|||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
'OK',
|
'OK',
|
||||||
style: StreamChatTheme.of(context)
|
style: StreamChatTheme.of(context)
|
||||||
|
|||||||
@@ -2139,7 +2139,7 @@ class MessageInputState extends State<MessageInput> {
|
|||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
'OK',
|
'OK',
|
||||||
style: StreamChatTheme.of(context)
|
style: StreamChatTheme.of(context)
|
||||||
|
|||||||
@@ -242,7 +242,7 @@ class _UserListViewState extends State<UserListView>
|
|||||||
),
|
),
|
||||||
child: Text(message),
|
child: Text(message),
|
||||||
),
|
),
|
||||||
FlatButton(
|
TextButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
_userListController.loadData();
|
_userListController.loadData();
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ Future<bool> showConfirmationDialog(
|
|||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
cancelText,
|
cancelText,
|
||||||
style: StreamChatTheme.of(context)
|
style: StreamChatTheme.of(context)
|
||||||
@@ -75,7 +75,7 @@ Future<bool> showConfirmationDialog(
|
|||||||
Navigator.of(context).pop(false);
|
Navigator.of(context).pop(false);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
okText,
|
okText,
|
||||||
style: StreamChatTheme.of(context)
|
style: StreamChatTheme.of(context)
|
||||||
@@ -145,7 +145,7 @@ Future<bool> showInfoDialog(
|
|||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||||
children: [
|
children: [
|
||||||
FlatButton(
|
TextButton(
|
||||||
child: Text(
|
child: Text(
|
||||||
okText,
|
okText,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
|
|||||||
Reference in New Issue
Block a user