design: Use outlined icons

This commit is contained in:
Christian Pauly 2020-12-06 10:31:35 +01:00
commit 67614205c9
27 changed files with 112 additions and 101 deletions

View file

@ -532,7 +532,7 @@ class _ChatState extends State<_Chat> {
)
: Row(
children: <Widget>[
Icon(Icons.edit,
Icon(Icons.edit_outlined,
color: Theme.of(context).primaryColor,
size: 13),
SizedBox(width: 4),
@ -557,7 +557,7 @@ class _ChatState extends State<_Chat> {
selectedEvents.first.status > 0 &&
selectedEvents.first.senderId == client.userID)
IconButton(
icon: Icon(Icons.edit),
icon: Icon(Icons.edit_outlined),
onPressed: () {
setState(() {
pendingText = sendController.text;
@ -572,12 +572,12 @@ class _ChatState extends State<_Chat> {
},
),
IconButton(
icon: Icon(Icons.content_copy),
icon: Icon(Icons.content_copy_outlined),
onPressed: () => copyEventsAction(context),
),
if (canRedactSelectedEvents)
IconButton(
icon: Icon(Icons.delete),
icon: Icon(Icons.delete_outlined),
onPressed: () => redactEventsAction(context),
),
]
@ -587,7 +587,7 @@ class _ChatState extends State<_Chat> {
? Padding(
padding: const EdgeInsets.only(bottom: 56.0),
child: FloatingActionButton(
child: Icon(Icons.arrow_downward,
child: Icon(Icons.arrow_downward_outlined,
color: Theme.of(context).primaryColor),
onPressed: () => _scrollController.jumpTo(0),
foregroundColor: Theme.of(context).textTheme.bodyText2.color,
@ -721,7 +721,7 @@ class _ChatState extends State<_Chat> {
padding: EdgeInsets.symmetric(
horizontal: 12.0),
child: Center(
child: Icon(Icons.reply),
child: Icon(Icons.reply_outlined),
),
),
direction: SwipeDirection.endToStart,
@ -911,7 +911,8 @@ class _ChatState extends State<_Chat> {
forwardEventsAction(context),
child: Row(
children: <Widget>[
Icon(Icons.keyboard_arrow_left),
Icon(Icons
.keyboard_arrow_left_outlined),
Text(L10n.of(context).forward),
],
),
@ -946,7 +947,8 @@ class _ChatState extends State<_Chat> {
Text(L10n.of(context)
.tryToSendAgain),
SizedBox(width: 4),
Icon(Icons.send, size: 16),
Icon(Icons.send_outlined,
size: 16),
],
),
),
@ -959,7 +961,7 @@ class _ChatState extends State<_Chat> {
height: 56,
alignment: Alignment.center,
child: PopupMenuButton<String>(
icon: Icon(Icons.add),
icon: Icon(Icons.add_outlined),
onSelected: (String choice) async {
if (choice == 'file') {
sendFileAction(context);
@ -981,7 +983,8 @@ class _ChatState extends State<_Chat> {
leading: CircleAvatar(
backgroundColor: Colors.green,
foregroundColor: Colors.white,
child: Icon(Icons.attachment),
child: Icon(
Icons.attachment_outlined),
),
title: Text(
L10n.of(context).sendFile),
@ -994,7 +997,8 @@ class _ChatState extends State<_Chat> {
leading: CircleAvatar(
backgroundColor: Colors.blue,
foregroundColor: Colors.white,
child: Icon(Icons.image),
child:
Icon(Icons.image_outlined),
),
title: Text(
L10n.of(context).sendImage),
@ -1009,7 +1013,8 @@ class _ChatState extends State<_Chat> {
backgroundColor:
Colors.purple,
foregroundColor: Colors.white,
child: Icon(Icons.camera_alt),
child: Icon(Icons
.camera_alt_outlined),
),
title: Text(L10n.of(context)
.openCamera),
@ -1024,7 +1029,8 @@ class _ChatState extends State<_Chat> {
leading: CircleAvatar(
backgroundColor: Colors.red,
foregroundColor: Colors.white,
child: Icon(Icons.mic),
child: Icon(
Icons.mic_none_outlined),
),
title: Text(L10n.of(context)
.voiceMessage),
@ -1098,7 +1104,7 @@ class _ChatState extends State<_Chat> {
height: 56,
alignment: Alignment.center,
child: IconButton(
icon: Icon(Icons.mic),
icon: Icon(Icons.mic_none_outlined),
onPressed: () =>
voiceMessageAction(context),
),
@ -1109,7 +1115,7 @@ class _ChatState extends State<_Chat> {
height: 56,
alignment: Alignment.center,
child: IconButton(
icon: Icon(Icons.send),
icon: Icon(Icons.send_outlined),
onPressed: () => send(),
),
),