Skip to content

Add references to all icons in CupertinoIcons.ttf #16102

Closed

Description

@ConProgramming

Steps to Reproduce

I am using CupertinoIcons in my app. I want to use all the icons from https://raw.githubusercontent.com/flutter/cupertino_icons/master/map.png, but I can only access some of them. For example, I can't get the pencil or the battery icon, but I can access many such as the shopping cart and share icon.

Logs

Run your application with `flutter run` and attach all the log output.

Launching lib/main.dart on iPhone X in debug mode...
Running Xcode clean...                                1.6s
Starting Xcode build...                                   
 ├─Assembling Flutter resources...             6.3s
 └─Compiling, linking and signing...          14.5s
Xcode build done                                     32.2s
4.10.1 - [Firebase/Analytics][I-ACS023007] Firebase Analytics v.40100000 started
4.10.1 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
Syncing files to device iPhone X...                   3.2s

🔥  To hot reload your app on the fly, press "r". To restart the app entirely, press "R".
An Observatory debugger and profiler on iPhone X is available at: http://127.0.0.1:8100/
For a more detailed help message, press "h". To quit, press "q".


Run `flutter analyze` and attach any output of that command also.

Analyzing /Users/con/StudioProjects/app...
  hint • The class '_CupertinoDateTimePicker' isn't used at lib/lists/newperson.dart:135:7 • unused_element
  hint • Unused import: 'package:flutter/foundation.dart' at lib/lists/newpersonlist.dart:4:8 • unused_import
  hint • Unused import: 'package:intl/intl.dart' at lib/lists/newpersonlist.dart:5:8 • unused_import
  hint • The top level variable '_birthDate' isn't used at lib/lists/newpersonlist.dart:22:10 • unused_element
  hint • Unused import: 'dart:async' at lib/lists/person.dart:3:8 • unused_import
  hint • Unused import: 'package:flutter/foundation.dart' at lib/lists/person.dart:4:8 • unused_import
  hint • Unused import: 'package:intl/intl.dart' at lib/lists/person.dart:5:8 • unused_import
7 issues found.
(Ran in 7.4s)

Flutter Doctor

Paste the output of running flutter doctor -v here.

[✓] Flutter (Channel beta, v0.1.5, on Mac OS X 10.13.3 17D47, locale en-US)
    • Flutter version 0.1.5 at /Users/conneraldrich/flutter
    • Framework revision 3ea4d06340 (5 weeks ago), 2018-02-22 11:12:39 -0800
    • Engine revision ead227f118
    • Dart version 2.0.0-dev.28.0.flutter-0b4f01f759

[✓] Android toolchain - develop for Android devices (Android SDK 26.0.2)
    • Android SDK at /Users/conneraldrich/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 26.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.2, Build version 9C40b
    • ios-deploy 1.9.2
    • CocoaPods version 1.4.0

[✓] Android Studio (version 3.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[!] IntelliJ IDEA Community Edition (version 2016.2.4)
    ✗ Flutter plugin not installed; this adds Flutter specific functionality.
    ✗ Dart plugin not installed; this adds Dart specific functionality.
    • For information about installing plugins, see
      https://flutter.io/intellij-setup/#installing-the-plugins
    ✗ This install is older than the minimum recommended version of 2017.1.0.

[✓] VS Code (version 1.21.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Dart Code extension version 2.11.1

[✓] Connected devices (2 available)
    • Android SDK built for x86 • emulator-5554                        • android-x86 • Android 8.0.0 (API 26) (emulator)
    • iPhone X                  • 466F48ED-B33F-4719-B216-D92519859B84 • ios         • iOS 11.2 (simulator)

! Doctor found issues in 1 category.

For more information about diagnosing and reporting Flutter bugs, please see https://flutter.io/bug-reports/.

Activity

  1. changed the title [-]Can't Access all Cupertino Icons[/-] [+]Add references to all icons in CupertinoIcons.ttf[/+] on Mar 30, 2018
  2. xster commented on Mar 30, 2018

    @xster
    Member

    Indeed not all the glyph references are added to https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/cupertino/icons.dart yet. In the meantime, feel free to send us PRs making additions to the file from the .ttf (the codepoints are present on the map image).

  3. ConProgramming commented on Mar 30, 2018

    @ConProgramming
    Author

    Ok thanks. For now I looked at that link and figured out how to link to the icons from my code.

  4. xster commented on Mar 30, 2018

    @xster
    Member

    I'll keep this issue open to gradually add all the glyphs to icons.dart

  5. reopened this on Mar 30, 2018
  6. ndrong commented on Apr 3, 2018

    @ndrong
    Contributor

    I’d be happy to send a PR with some additions to the glyph references. Is there a list of names for the icons, or should I just come up with fitting names myself?

  7. xster commented on Apr 3, 2018

    @xster
    Member

    Thanks @ndrong. There isn't a list. Just make sure the names are future-proof.

  8. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    on Jul 22, 2018
  9. added this to the milestone on Jan 28, 2019
  10. modified the milestones: , on Jan 7, 2020
  11. added
    a: qualityA truly polished experience
    c: proposalA detailed proposal for a change to Flutter
    on Mar 27, 2020
  12. added
    P3Issues that are less important to the Flutter project
    on May 29, 2020
  13. modified the milestone: on Jun 1, 2020
  14. removed this from the milestone on Jun 16, 2020
  15. removed this from the milestone on Jul 22, 2020
  16. removed this from the milestone on Aug 17, 2020
  17. xster commented on Sep 3, 2020

    @xster
    Member

    This issue is deprecated and will merge into #33916

  18. github-actions commented on Aug 13, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  19. locked as resolved and limited conversation to collaborators on Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projecta: qualityA truly polished experiencec: proposalA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.p: cupertino_uicupertino_ui package in flutter/packages

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions