Skip to content

Commit

Permalink
add splash radius
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoalvesdulce committed Apr 3, 2023
1 parent faacdf0 commit aacbe9a
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions bruig/flutterui/bruig/lib/components/active_chat.dart
Expand Up @@ -868,24 +868,33 @@ class FileDownloadedEventW extends StatelessWidget {

@override
Widget build(BuildContext context) {
// TODO: add button to open file.
var theme = Theme.of(context);
var textColor = theme.dividerColor;
var backgroundColor = theme.highlightColor;
return ServerEvent(
child: Container(
padding: const EdgeInsets.all(0),
decoration: BoxDecoration(
color: backgroundColor,
borderRadius: const BorderRadius.all(Radius.circular(5))),
color: backgroundColor,
borderRadius: const BorderRadius.all(Radius.circular(5)),
),
child: Row(
children: [
IconButton(
Material(
color: backgroundColor,
child: IconButton(
onPressed: () {
OpenFilex.open(event.diskPath);
},
icon: FileIcon(event.diskPath, size: 24)),
SelectableText("Downloaded file ${event.diskPath}",
style: TextStyle(fontSize: 9, color: textColor)),
splashRadius: 20,
icon: FileIcon(event.diskPath, size: 24),
),
),
const SizedBox(width: 10),
SelectableText(
"Downloaded file ${event.diskPath}",
style: TextStyle(fontSize: 9, color: textColor),
),
],
),
),
Expand Down

0 comments on commit aacbe9a

Please sign in to comment.