groovin_material_icons 1.1.5

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 94

groovin_material_icons

This Flutter package is a fork of community_material_icons, which seems to have been abandoned. There are some icons that the original developer added to the repo, but was never released on pub. This package includes those icons.

If you find any icons that are not in the package and should be, please either open an issue linking to the icon or fork the repo, add the icon yourself, and open a pull request

Special thanks to:

  • Miyoyo
  • ThinkDigital
  • Matthew Evans

How to contribue

  1. Fork the repo
  2. Clone the repo to your machine
  3. Add your new IconData. Make sure that you know the codePoint for your icon. Check https://cdn.materialdesignicons.com/2.6.95/ for your icon if it is an icon that the community has already created. If you have an svg icon, you can upload it to http://fluttericon.com/ to generate a custom font that will tell you exactly how to add your icon to the package.
  4. Commit your code to your repo
  5. Open a pull request

Getting Started with Flutter

For help getting started with Flutter, view our online documentation.

For help on editing package code, view the documentation.

1.1.0 - 9/13/2018

  • Version 1.1.5 updates the 'url_launcher' dependency

  • Version 1.1.4 updates the example app

  • Version 1.1.3 updates the example app with icon search and a new view when tappping an icon

  • Version 1.1.2 updates the example app with all icons included in the package

  • Version 1.1.1 adds the send_outline icon

  • Version 1.1.0 starts to introduce Google's new outline icons. Look out for more coming soon!

1.0.0 - 8/15/2018

  • Version 1.0.6 introduces the dart icon to the package

  • Version 1.0.5 fixes flutter sdk in pubspec

  • Version 1.0.4 adds the Flutter icon to the package

  • Version 1.0.3 fixed Flutter version

  • Version 1.0.2 fixed example

  • Version 1.0.1 removes the word 'community' from the class name

  • Version 1.0.0 brings new material icons into the package

example/lib/main.dart

import 'package:draggable_scrollbar/draggable_scrollbar.dart';
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:groovin_material_icons/groovin_material_icons.dart';
import 'package:groovin_material_icons_testapp/icon_map.dart';
import 'package:groovin_material_icons_testapp/search.dart';
import 'package:url_launcher/url_launcher.dart';

import 'icon_display.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'GMI Companion'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  var scrollController = ScrollController();
  var fabIcon = Icons.search;
  Function refreshFab;
  var iconList;

  @override
  void initState() {
    iconList = iconMap
      .map((title, icon) => MapEntry(
      title,
      new IconCard(
        title: title,
        icon: icon,
      )))
      .values
      .toList();
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    var crossAxisCount = (MediaQuery.of(context).size.width / 150).ceil();
    return Scaffold(
      backgroundColor: Colors.white,
      appBar: AppBar(
        centerTitle: true,
        backgroundColor: Colors.white,
        iconTheme: IconThemeData(
          color: Colors.black
        ),
        title: Text(widget.title, style: TextStyle(color: Colors.black)),
        leading: IconButton(
          icon: Icon(Icons.info_outline),
          onPressed: (){
            showModalBottomSheet(
              context: context,
              builder: (builder){
                return Container(
                  child: SingleChildScrollView(
                    child: Column(
                      mainAxisSize: MainAxisSize.min,
                      children: <Widget>[
                        Padding(
                          padding: const EdgeInsets.only(top: 8.0),
                          child: Row(
                            mainAxisAlignment: MainAxisAlignment.center,
                            children: <Widget>[
                              Container(
                                height: 5.0,
                                width: 25.0,
                                decoration: BoxDecoration(
                                    color: Colors.grey[300],
                                    borderRadius: BorderRadius.only(
                                      topLeft: const Radius.circular(10.0),
                                      topRight: const Radius.circular(10.0),
                                      bottomLeft: const Radius.circular(10.0),
                                      bottomRight: const Radius.circular(10.0),
                                    )
                                ),
                              ),
                            ],
                          ),
                        ),
                        ListTile(
                          leading: Icon(GroovinMaterialIcons.information_variant, color: Colors.black,),
                          title: Text("Package Version: 1.1.4"),
                        ),
                        Material(
                          child: ListTile(
                            leading: Icon(GroovinMaterialIcons.dart_logo, color: Colors.blue,),
                            title: Text("View on Pub"),
                            onTap: (){
                              launch("https://pub.dartlang.org/packages/groovin_material_icons");
                            },
                          ),
                        ),
                        ListTile(
                          leading: Icon(GroovinMaterialIcons.creation, color: Colors.black,),
                          title: Text("Special Thanks to:"),
                          subtitle: Text("Miyoyo, Matthew Evans, and ThinkDigital"),
                        ),
                        Divider(
                          color: Colors.grey,
                          height: 0.0,
                        ),
                        ListTile(
                          leading: Icon(GroovinMaterialIcons.flutter, color: Colors.blue),
                          title: Text("Get Started with Flutter"),
                          onTap: (){
                            launch("https:flutter.io");
                          },
                        ),
                        Divider(
                          color: Colors.grey,
                          height: 0.0,
                        ),
                        Row(
                          mainAxisAlignment: MainAxisAlignment.spaceEvenly,
                          children: <Widget>[
                            IconButton(
                              icon: Icon(GroovinMaterialIcons.twitter, color: Colors.blue),
                              onPressed: (){
                                launch("https:twitter.com/GroovinChipDev");
                              },
                            ),
                            IconButton(
                              icon: Icon(GroovinMaterialIcons.github_circle),
                              onPressed: (){
                                launch("https:github.com/GroovinChip");
                              },
                            ),
                            IconButton(
                              icon: Icon(GroovinMaterialIcons.gmail),
                              color: Colors.red,
                              onPressed: (){
                                launch("mailto:groovinchip@gmail.com");
                              },
                            ),
                            IconButton(
                              icon: Icon(GroovinMaterialIcons.discord, color: Colors.deepPurpleAccent),
                              onPressed: (){
                                launch("https://discord.gg/CFnBRue");
                              },
                            ),
                          ],
                        ),
                      ],
                    ),
                  ),
                );
              }
            );
          },
        ),
        actions: <Widget>[
          IconButton(
            icon: Icon(Icons.search),
            onPressed: () {
              showSearch(context: context, delegate: IconSearch());
            },
          ),
        ],
      ),
      body: DraggableScrollbar.rrect(
        backgroundColor: Colors.indigo,
        controller: scrollController,
        child: GridView.builder(
          physics: PageScrollPhysics(),
          controller: scrollController,
          padding: EdgeInsets.all(10.0),
          itemCount: iconMap.length,
          gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(
              crossAxisCount: crossAxisCount),
          itemBuilder: (BuildContext context, int index) {
            return iconList[index];
          },
        ),
      ),
    );
  }
}

class IconCard extends StatelessWidget {
  final String title;
  final IconData icon;

  const IconCard({
    Key key,
    this.title,
    this.icon,
  }) : super(key: key);

  final double elevation = 0.0;
  final double iconSize = 35.0;

  final FontWeight fontWeight = FontWeight.w300;

  @override
  Widget build(BuildContext context) {
    return Card(
      elevation: elevation,
      child: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            IconButton(
              icon: Icon(icon),
              iconSize: iconSize,
              onPressed: () {
                Navigator.of(context)
                    .push(MaterialPageRoute(builder: (BuildContext context) {
                  return IconDisplay(
                    title: title,
                    iconData: icon,
                    showAppBar: true,
                  );
                }));
              },
            ),
            Padding(
              padding: const EdgeInsets.all(8.0),
              child: Text(
                title,
                textAlign: TextAlign.center,
                style: TextStyle(fontWeight: fontWeight),
              ),
            )
          ],
        ),
      ),
    );
  }
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  groovin_material_icons: ^1.1.5

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter packages get

Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:groovin_material_icons/groovin_material_icons.dart';
  
Version Uploaded Documentation Archive
1.1.5 Oct 3, 2018 Go to the documentation of groovin_material_icons 1.1.5 Download groovin_material_icons 1.1.5 archive
1.1.4 Sep 28, 2018 Go to the documentation of groovin_material_icons 1.1.4 Download groovin_material_icons 1.1.4 archive
1.1.3 Sep 27, 2018 Go to the documentation of groovin_material_icons 1.1.3 Download groovin_material_icons 1.1.3 archive
1.1.2 Sep 16, 2018 Go to the documentation of groovin_material_icons 1.1.2 Download groovin_material_icons 1.1.2 archive
1.1.1 Sep 15, 2018 Go to the documentation of groovin_material_icons 1.1.1 Download groovin_material_icons 1.1.1 archive
1.1.0 Sep 14, 2018 Go to the documentation of groovin_material_icons 1.1.0 Download groovin_material_icons 1.1.0 archive
1.0.6 Sep 14, 2018 Go to the documentation of groovin_material_icons 1.0.6 Download groovin_material_icons 1.0.6 archive
1.0.5 Aug 31, 2018 Go to the documentation of groovin_material_icons 1.0.5 Download groovin_material_icons 1.0.5 archive
1.0.4 Aug 31, 2018 Go to the documentation of groovin_material_icons 1.0.4 Download groovin_material_icons 1.0.4 archive
1.0.3 Aug 26, 2018 Go to the documentation of groovin_material_icons 1.0.3 Download groovin_material_icons 1.0.3 archive

All 14 versions...

Popularity:
Describes how popular the package is relative to other packages. [more]
88
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
94
Learn more about scoring.

We analyzed this package on Oct 26, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0-dev.7.1.flutter-b99bcfd309
  • pana: 0.12.5
  • Flutter: 0.10.1

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.19.0 <3.0.0
draggable_scrollbar ^0.0.4 0.0.4
flutter 0.0.0
url_launcher ^4.0.0 4.0.1
Transitive dependencies
collection 1.14.11
meta 1.1.6
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test