Repository navigation
Add references to all icons in CupertinoIcons.ttf #16102
Copy link
Copy link
Closed
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: qualityA truly polished experienceA truly polished experiencec: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.p: cupertino_uicupertino_ui package in flutter/packagescupertino_ui package in flutter/packages
Description
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/.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: qualityA truly polished experienceA truly polished experiencec: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterframeworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.p: cupertino_uicupertino_ui package in flutter/packagescupertino_ui package in flutter/packages
Activity
[-]Can't Access all Cupertino Icons[/-][+]Add references to all icons in CupertinoIcons.ttf[/+]xster commentedon Mar 30, 2018
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).
ConProgramming commentedon Mar 30, 2018
Ok thanks. For now I looked at that link and figured out how to link to the icons from my code.
xster commentedon Mar 30, 2018
I'll keep this issue open to gradually add all the glyphs to icons.dart
ndrong commentedon Apr 3, 2018
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?
xster commentedon Apr 3, 2018
Thanks @ndrong. There isn't a list. Just make sure the names are future-proof.
[cupertino_icons] Add glyph references for brightness and brightness_…
xster commentedon Sep 3, 2020
This issue is deprecated and will merge into #33916
github-actions commentedon Aug 13, 2021
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 -vand a minimal reproduction of the issue.