Skip to content

Commit

Permalink
Add tooltip to drive icon
Browse files Browse the repository at this point in the history
  • Loading branch information
dhzdhd committed Jun 10, 2023
1 parent 927db73 commit 8ccc4c9
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions lib/src/accounts/views/account_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,16 @@ class AccountView extends ConsumerWidget {
children: [
Row(
children: [
SvgPicture.asset(
e.provider == AuthProviderType.oneDrive
? 'assets/logos/onedrive.svg'
: 'assets/logos/dropbox.svg',
width: MediaQuery.of(context).size.width < 500
? 50
: 70,
Tooltip(
message: e.provider.name.capitalize(),
child: SvgPicture.asset(
e.provider == AuthProviderType.oneDrive
? 'assets/logos/onedrive.svg'
: 'assets/logos/dropbox.svg',
width: MediaQuery.of(context).size.width < 500
? 50
: 70,
),
),
Padding(
padding: EdgeInsets.only(
Expand Down

0 comments on commit 8ccc4c9

Please sign in to comment.