mirror of
				https://gitlab.com/famedly/fluffychat.git
				synced 2025-11-03 22:07:23 +01:00 
			
		
		
		
	fix: Missing tooltips in IconButtons
This commit is contained in:
		
							parent
							
								
									b1f6209c3c
								
							
						
					
					
						commit
						57a021f03c
					
				@ -180,6 +180,7 @@ class UserBottomSheet extends StatelessWidget {
 | 
			
		||||
                leading: IconButton(
 | 
			
		||||
                  icon: Icon(Icons.arrow_downward_outlined),
 | 
			
		||||
                  onPressed: Navigator.of(context).pop,
 | 
			
		||||
                  tooltip: L10n.of(context).close,
 | 
			
		||||
                ),
 | 
			
		||||
                title: Text(user.calcDisplayname()),
 | 
			
		||||
                actions: [
 | 
			
		||||
 | 
			
		||||
@ -448,6 +448,26 @@
 | 
			
		||||
    "type": "text",
 | 
			
		||||
    "placeholders": {}
 | 
			
		||||
  },
 | 
			
		||||
  "zoomIn": "Zoom in",
 | 
			
		||||
  "@zoomIn": {
 | 
			
		||||
    "type": "text",
 | 
			
		||||
    "placeholders": {}
 | 
			
		||||
  },
 | 
			
		||||
  "zoomOut": "Zoom out",
 | 
			
		||||
  "@zoomOut": {
 | 
			
		||||
    "type": "text",
 | 
			
		||||
    "placeholders": {}
 | 
			
		||||
  },
 | 
			
		||||
  "addEmail": "Add email",
 | 
			
		||||
  "@addEmail": {
 | 
			
		||||
    "type": "text",
 | 
			
		||||
    "placeholders": {}
 | 
			
		||||
  },
 | 
			
		||||
  "showPassword": "Show password",
 | 
			
		||||
  "@showPassword": {
 | 
			
		||||
    "type": "text",
 | 
			
		||||
    "placeholders": {}
 | 
			
		||||
  },
 | 
			
		||||
  "chatBackup": "Chat backup",
 | 
			
		||||
  "@chatBackup": {
 | 
			
		||||
    "type": "text",
 | 
			
		||||
 | 
			
		||||
@ -521,6 +521,7 @@ class _ChatState extends State<Chat> {
 | 
			
		||||
            ? IconButton(
 | 
			
		||||
                icon: Icon(Icons.close),
 | 
			
		||||
                onPressed: () => setState(() => selectedEvents.clear()),
 | 
			
		||||
                tooltip: L10n.of(context).close,
 | 
			
		||||
              )
 | 
			
		||||
            : null,
 | 
			
		||||
        titleSpacing:
 | 
			
		||||
@ -592,6 +593,7 @@ class _ChatState extends State<Chat> {
 | 
			
		||||
                    selectedEvents.first.senderId == client.userID)
 | 
			
		||||
                  IconButton(
 | 
			
		||||
                    icon: Icon(Icons.edit_outlined),
 | 
			
		||||
                    tooltip: L10n.of(context).edit,
 | 
			
		||||
                    onPressed: () {
 | 
			
		||||
                      setState(() {
 | 
			
		||||
                        pendingText = sendController.text;
 | 
			
		||||
@ -645,6 +647,7 @@ class _ChatState extends State<Chat> {
 | 
			
		||||
              ]
 | 
			
		||||
            : <Widget>[
 | 
			
		||||
                IconButton(
 | 
			
		||||
                  tooltip: L10n.of(context).videoCall,
 | 
			
		||||
                  icon: Icon(Icons.call_outlined),
 | 
			
		||||
                  onPressed: () => startCallAction(context),
 | 
			
		||||
                ),
 | 
			
		||||
@ -959,6 +962,7 @@ class _ChatState extends State<Chat> {
 | 
			
		||||
                    child: Row(
 | 
			
		||||
                      children: <Widget>[
 | 
			
		||||
                        IconButton(
 | 
			
		||||
                          tooltip: L10n.of(context).close,
 | 
			
		||||
                          icon: Icon(Icons.close),
 | 
			
		||||
                          onPressed: () => setState(() {
 | 
			
		||||
                            if (editEvent != null) {
 | 
			
		||||
@ -1196,6 +1200,7 @@ class _ChatState extends State<Chat> {
 | 
			
		||||
                                      height: 56,
 | 
			
		||||
                                      alignment: Alignment.center,
 | 
			
		||||
                                      child: IconButton(
 | 
			
		||||
                                        tooltip: L10n.of(context).voiceMessage,
 | 
			
		||||
                                        icon: Icon(Icons.mic_none_outlined),
 | 
			
		||||
                                        onPressed: () =>
 | 
			
		||||
                                            voiceMessageAction(context),
 | 
			
		||||
@ -1209,6 +1214,7 @@ class _ChatState extends State<Chat> {
 | 
			
		||||
                                      child: IconButton(
 | 
			
		||||
                                        icon: Icon(Icons.send_outlined),
 | 
			
		||||
                                        onPressed: () => send(),
 | 
			
		||||
                                        tooltip: L10n.of(context).send,
 | 
			
		||||
                                      ),
 | 
			
		||||
                                    ),
 | 
			
		||||
                                ],
 | 
			
		||||
 | 
			
		||||
@ -202,6 +202,7 @@ class _ChatDetailsState extends State<ChatDetails> {
 | 
			
		||||
                  actions: <Widget>[
 | 
			
		||||
                    if (room.canonicalAlias?.isNotEmpty ?? false)
 | 
			
		||||
                      IconButton(
 | 
			
		||||
                        tooltip: L10n.of(context).share,
 | 
			
		||||
                        icon: Icon(Icons.share_outlined),
 | 
			
		||||
                        onPressed: () => FluffyShare.share(
 | 
			
		||||
                            AppConfig.inviteLinkPrefix + room.canonicalAlias,
 | 
			
		||||
 | 
			
		||||
@ -284,6 +284,7 @@ class _ChatListState extends State<ChatList> {
 | 
			
		||||
                          : [
 | 
			
		||||
                              IconButton(
 | 
			
		||||
                                icon: Icon(Icons.search_outlined),
 | 
			
		||||
                                tooltip: L10n.of(context).search,
 | 
			
		||||
                                onPressed: () async {
 | 
			
		||||
                                  await _scrollController.animateTo(
 | 
			
		||||
                                    _scrollController.position.minScrollExtent,
 | 
			
		||||
 | 
			
		||||
@ -4,6 +4,7 @@ import 'package:fluffychat/components/image_bubble.dart';
 | 
			
		||||
import 'package:fluffychat/components/matrix.dart';
 | 
			
		||||
import 'package:flutter/material.dart';
 | 
			
		||||
import '../utils/event_extension.dart';
 | 
			
		||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
 | 
			
		||||
import '../utils/platform_infos.dart';
 | 
			
		||||
 | 
			
		||||
class ImageView extends StatelessWidget {
 | 
			
		||||
@ -30,6 +31,7 @@ class ImageView extends StatelessWidget {
 | 
			
		||||
          icon: Icon(Icons.close),
 | 
			
		||||
          onPressed: () => Navigator.of(context).pop(),
 | 
			
		||||
          color: Colors.white,
 | 
			
		||||
          tooltip: L10n.of(context).close,
 | 
			
		||||
        ),
 | 
			
		||||
        backgroundColor: Color(0x44000000),
 | 
			
		||||
        actions: [
 | 
			
		||||
@ -37,11 +39,13 @@ class ImageView extends StatelessWidget {
 | 
			
		||||
            icon: Icon(Icons.reply_outlined),
 | 
			
		||||
            onPressed: () => _forwardAction(context),
 | 
			
		||||
            color: Colors.white,
 | 
			
		||||
            tooltip: L10n.of(context).share,
 | 
			
		||||
          ),
 | 
			
		||||
          IconButton(
 | 
			
		||||
            icon: Icon(Icons.download_outlined),
 | 
			
		||||
            onPressed: () => event.openFile(context, downloadOnly: true),
 | 
			
		||||
            color: Colors.white,
 | 
			
		||||
            tooltip: L10n.of(context).downloadFile,
 | 
			
		||||
          ),
 | 
			
		||||
        ],
 | 
			
		||||
      ),
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,7 @@
 | 
			
		||||
import 'package:famedlysdk/famedlysdk.dart';
 | 
			
		||||
import 'package:flutter/material.dart';
 | 
			
		||||
import 'package:logger/logger.dart';
 | 
			
		||||
import 'package:flutter_gen/gen_l10n/l10n.dart';
 | 
			
		||||
 | 
			
		||||
class LogViewer extends StatefulWidget {
 | 
			
		||||
  @override
 | 
			
		||||
@ -25,10 +26,12 @@ class _LogViewerState extends State<LogViewer> {
 | 
			
		||||
          IconButton(
 | 
			
		||||
            icon: Icon(Icons.zoom_in_outlined),
 | 
			
		||||
            onPressed: () => setState(() => fontSize++),
 | 
			
		||||
            tooltip: L10n.of(context).zoomIn,
 | 
			
		||||
          ),
 | 
			
		||||
          IconButton(
 | 
			
		||||
            icon: Icon(Icons.zoom_out_outlined),
 | 
			
		||||
            onPressed: () => setState(() => fontSize--),
 | 
			
		||||
            tooltip: L10n.of(context).zoomOut,
 | 
			
		||||
          ),
 | 
			
		||||
          PopupMenuButton<Level>(
 | 
			
		||||
            itemBuilder: (context) => Level.values
 | 
			
		||||
 | 
			
		||||
@ -205,6 +205,7 @@ class _LoginState extends State<Login> {
 | 
			
		||||
                    hintText: '****',
 | 
			
		||||
                    errorText: passwordError,
 | 
			
		||||
                    suffixIcon: IconButton(
 | 
			
		||||
                      tooltip: L10n.of(context).showPassword,
 | 
			
		||||
                      icon: Icon(showPassword
 | 
			
		||||
                          ? Icons.visibility_off_outlined
 | 
			
		||||
                          : Icons.visibility_outlined),
 | 
			
		||||
 | 
			
		||||
@ -103,6 +103,7 @@ class _Settings3PidState extends State<Settings3Pid> {
 | 
			
		||||
          IconButton(
 | 
			
		||||
            icon: Icon(Icons.add_outlined),
 | 
			
		||||
            onPressed: () => _add3PidAction(context),
 | 
			
		||||
            tooltip: L10n.of(context).addEmail,
 | 
			
		||||
          )
 | 
			
		||||
        ],
 | 
			
		||||
      ),
 | 
			
		||||
@ -153,6 +154,7 @@ class _Settings3PidState extends State<Settings3Pid> {
 | 
			
		||||
                        child: Icon(identifier[i].iconData)),
 | 
			
		||||
                    title: Text(identifier[i].address),
 | 
			
		||||
                    trailing: IconButton(
 | 
			
		||||
                      tooltip: L10n.of(context).delete,
 | 
			
		||||
                      icon: Icon(Icons.delete_forever_outlined),
 | 
			
		||||
                      color: Colors.red,
 | 
			
		||||
                      onPressed: () => _delete3Pid(context, identifier[i]),
 | 
			
		||||
 | 
			
		||||
@ -63,6 +63,7 @@ class _SettingsIgnoreListState extends State<SettingsIgnoreList> {
 | 
			
		||||
                    prefixText: '@',
 | 
			
		||||
                    labelText: L10n.of(context).ignoreUsername,
 | 
			
		||||
                    suffixIcon: IconButton(
 | 
			
		||||
                      tooltip: L10n.of(context).ignore,
 | 
			
		||||
                      icon: Icon(Icons.done_outlined),
 | 
			
		||||
                      onPressed: () => _ignoreUser(context),
 | 
			
		||||
                    ),
 | 
			
		||||
@ -95,6 +96,7 @@ class _SettingsIgnoreListState extends State<SettingsIgnoreList> {
 | 
			
		||||
                        title:
 | 
			
		||||
                            Text(s.data?.displayname ?? client.ignoredUsers[i]),
 | 
			
		||||
                        trailing: IconButton(
 | 
			
		||||
                          tooltip: L10n.of(context).delete,
 | 
			
		||||
                          icon: Icon(Icons.delete_forever_outlined),
 | 
			
		||||
                          onPressed: () => showFutureLoadingDialog(
 | 
			
		||||
                            context: context,
 | 
			
		||||
 | 
			
		||||
@ -159,6 +159,7 @@ class _SignUpPasswordState extends State<SignUpPassword> {
 | 
			
		||||
                  hintText: '****',
 | 
			
		||||
                  errorText: passwordError,
 | 
			
		||||
                  suffixIcon: IconButton(
 | 
			
		||||
                    tooltip: L10n.of(context).showPassword,
 | 
			
		||||
                    icon: Icon(showPassword
 | 
			
		||||
                        ? Icons.visibility_off_outlined
 | 
			
		||||
                        : Icons.visibility_outlined),
 | 
			
		||||
 | 
			
		||||
@ -631,7 +631,7 @@ packages:
 | 
			
		||||
      name: matrix_api_lite
 | 
			
		||||
      url: "https://pub.dartlang.org"
 | 
			
		||||
    source: hosted
 | 
			
		||||
    version: "0.1.7"
 | 
			
		||||
    version: "0.1.9"
 | 
			
		||||
  matrix_file_e2ee:
 | 
			
		||||
    dependency: transitive
 | 
			
		||||
    description:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user