Skip to content

Commit

Permalink
Tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
blopker committed Feb 7, 2024
1 parent 0633d0d commit 5f50085
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/table.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:alic/imagefiles.dart';
import 'package:data_table_2/data_table_2.dart';
import 'package:flutter/material.dart';
import 'package:alic/imagefiles.dart';
import 'package:open_file_macos/open_file_macos.dart';
import 'package:signals/signals_flutter.dart';

Expand Down Expand Up @@ -96,7 +96,14 @@ class _FilesTableState extends State<FilesTable> {
(index) => DataRow2(onSelectChanged: (_) {}, cells: [
DataCell(getStatusIcon(rows[index])),
DataCell(
Text(rows[index].file),
Tooltip(
waitDuration: const Duration(seconds: 1),
message: rows[index].path,
child: Text(
rows[index].file,
overflow: TextOverflow.ellipsis,
),
),
onDoubleTap: () {
_openFileMacosPlugin.open(rows[index].path,
viewInFinder: true);
Expand Down

0 comments on commit 5f50085

Please sign in to comment.