Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add User Alert for "Copy" Button Action #24

Open
muzammildafedar opened this issue Oct 3, 2024 · 9 comments
Open

Feature Request: Add User Alert for "Copy" Button Action #24

muzammildafedar opened this issue Oct 3, 2024 · 9 comments
Assignees
Labels
feature request New features for Udayah good first issue Good for newcomers hacktoberfest Issues that can win you some cool swags!

Comments

@muzammildafedar
Copy link
Owner

Description:

When a user clicks the "Copy" button to copy the email address, the action works correctly; however, there is no alert or feedback provided to the user confirming that the email address has been successfully copied. To improve user experience, I suggest implementing a notification alert using our custom widget.

Steps to Reproduce:

  1. Navigate to the section with the "Copy" button.
  2. Click the "Copy" button.

Expected Behavior:

  • After clicking the "Copy" button, the user should receive an alert notification indicating that the email address has been successfully copied to the clipboard.

Actual Behavior:

  • Currently, there is no feedback provided to the user after clicking the "Copy" button, which may lead to confusion about whether the action was successful.

Proposed Solution:

  • Utilize the custom widget we have in our codebase to display an alert notification to the user after the "Copy" action is performed.

Screenshots:

Screenshot 2024-10-03 at 10 08 33 PM
@muzammildafedar muzammildafedar added good first issue Good for newcomers feature request New features for Udayah hacktoberfest Issues that can win you some cool swags! labels Oct 3, 2024
@IngaleChinmay04
Copy link

I'm interested in fixing the missing feedback after the 'Copy' action. I can use the TossBar widget for the solution. Could you please assign this issue to me?

@muzammildafedar
Copy link
Owner Author

@IngaleChinmay04 assigned ! Thanks for your interest.

@may-tas
Copy link

may-tas commented Oct 9, 2024

I want to work on this issue if its still open @muzammildafedar .

@muzammildafedar
Copy link
Owner Author

@IngaleChinmay04 how's your progress on this? FYI, I'll need to un-assign you soon if I don't hear back.

@IngaleChinmay04
Copy link

hi, I am sorry I am unable to do it as I tried to setup but setuping the project is getting problems.

I am getting the following

lib/main.dart:4:8: Error: Error when reading 'lib/firebase_options.dart': The system cannot find the file specified.

import 'package:udayah/firebase_options.dart';
^
lib/main.dart:18:41: Error: Undefined name 'DefaultFirebaseOptions'.
await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
^^^^^^^^^^^^^^^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dev/html_editor_enhanced-2.5.1/lib/src/widgets/toolbar_widget.dart:1123:68:
Error: The getter 'headline6' isn't defined for the class 'TextTheme'.

  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart'
    ('/C:/installation%20flutter/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'headline6'.
    style: Theme.of(context).textTheme.headline6),
    ^^^^^^^^^
    ../../AppData/Local/Pub/Cache/hosted/pub.dev/html_editor_enhanced-2.5.1/lib/src/widgets/toolbar_widget.dart:1875:56:
    Error: The getter 'bodyText1' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart'
    ('/C:/installation%20flutter/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText1'.
    .bodyText1
    ^^^^^^^^^
    ../../AppData/Local/Pub/Cache/hosted/pub.dev/html_editor_enhanced-2.5.1/lib/src/widgets/toolbar_widget.dart:1982:56:
    Error: The getter 'bodyText1' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart'
    ('/C:/installation%20flutter/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText1'.
    .bodyText1
    ^^^^^^^^^
    ../../AppData/Local/Pub/Cache/hosted/pub.dev/html_editor_enhanced-2.5.1/lib/src/widgets/toolbar_widget.dart:2134:56:
    Error: The getter 'bodyText1' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart'
    ('/C:/installation%20flutter/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText1'.
    .bodyText1
    ^^^^^^^^^
    ../../AppData/Local/Pub/Cache/hosted/pub.dev/html_editor_enhanced-2.5.1/lib/src/widgets/toolbar_widget.dart:2286:56:
    Error: The getter 'bodyText1' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart'
    ('/C:/installation%20flutter/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText1'.
    .bodyText1
    ^^^^^^^^^
    ../../AppData/Local/Pub/Cache/hosted/pub.dev/html_editor_enhanced-2.5.1/lib/src/widgets/toolbar_widget.dart:2438:56:
    Error: The getter 'bodyText1' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart'
    ('/C:/installation%20flutter/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText1'.
    .bodyText1
    ^^^^^^^^^
    ../../AppData/Local/Pub/Cache/hosted/pub.dev/html_editor_enhanced-2.5.1/lib/utils/utils.dart:952:51: Error: The getter
    'subtitle1' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart'
    ('/C:/installation%20flutter/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'subtitle1'.
    widget.style ?? Theme.of(context).textTheme.subtitle1;
    ^^^^^^^^^
    ../../AppData/Local/Pub/Cache/hosted/pub.dev/html_editor_enhanced-2.5.1/lib/utils/utils.dart:1012:37: Error: The
    getter 'subtitle1' isn't defined for the class 'TextTheme'.
  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart'
    ('/C:/installation%20flutter/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'subtitle1'.
    Theme.of(context).textTheme.subtitle1!.fontSize!;
    ^^^^^^^^^
    Waiting for connection from debug service on Chrome... 75.9s
    Failed to compile application.

C:\Users\dell inspiron\Desktop\udayah\lib>

@may-tas
Copy link

may-tas commented Oct 10, 2024

Hey @muzammildafedar can I take this issue on?

@muzammildafedar
Copy link
Owner Author

@IngaleChinmay04 Could you please fire your own firebase setup to local repo ?
Ref: https://firebase.google.com/docs/flutter/setup?platform=web

@may-tas Thanks for your interest, You can pick any other open issues which are unassigned. And you can open new issue for new feature anything if you want to add/Improvement to the current design.

@may-tas
Copy link

may-tas commented Oct 10, 2024

yeah sure.

@IngaleChinmay04
Copy link

I am getting the above problem after I setup with firebase. I had created my firebase project and connected to flutter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New features for Udayah good first issue Good for newcomers hacktoberfest Issues that can win you some cool swags!
Projects
None yet
Development

No branches or pull requests

3 participants