This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MaterialSymbolsBase.setOutlinedVariationDefaults( | |
color: Colors.red, | |
fill: 1, | |
weight: 300, | |
grade: 0, | |
opticalSize: 40.0); | |
MaterialSymbolsBase.setRoundedVariationDefaults( | |
color: Colors.blue, | |
fill: 0, | |
weight: 400, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2025 Fredrick Allan Grott. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
// ignore_for_file: unnecessary_new, avoid_redundant_argument_values | |
import 'dart:math' as math; | |
import 'package:flutter/material.dart'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dart pub global activate material_symbols_icons | |
[Only needs to be done once to activate | |
the install_material_symbols_icons_fonts command.] | |
install_material_symbols_icons_fonts | |
[Execute once to install the material symbols icons fonts and | |
again any time you wish to update the icon fonts | |
to the latest package versions.] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MaterialSymbolsBase.setOutlinedVariationDefaults( | |
color: Colors.red, | |
fill: 1, | |
weight: 300, | |
grade: 0, | |
opticalSize: 40.0); | |
MaterialSymbolsBase.setRoundedVariationDefaults( | |
color: Colors.blue, | |
fill: 0, | |
weight: 400, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
/* | |
Set default IconThemeData() for ALL icons | |
*/ | |
return MaterialApp( | |
title: 'Material Symbols Icons For Flutter', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
final myIcon = Icon( Symbols.settings, | |
fill: 1, weight: 700, grade: 0.25, opticalSize: 48 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// `import 'package:material_symbols_icons/symbols_map.dart';` or | |
// optionally turn off icon tree-shaking when using the get() method! | |
// ( build with `--no-tree-shake-icons` ) | |
import 'package:material_symbols_icons/symbols_map.dart'; | |
import 'package:material_symbols_icons/get.dart'; | |
final iconRounded = SymbolsGet.get('airplane',SymbolStyle.rounded); | |
final iconSharp = SymbolsGet.get('airplane',SymbolStyle.sharp); | |
final iconOutlined = SymbolsGet.get('airplane',SymbolStyle.outlined); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:material_symbols_icons/symbols.dart'; | |
final myIcon = Icon( Symbols.add_task); | |
final myRoundedIcon = Icon( Symbols.add_task_rounded); | |
final mySharpIcon = Icon( Symbols.add_task_sharp); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies: | |
material_symbols_icons: ^4.2873.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2025 Fredrick Allan Grott. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
// | |
// Modified from BlurBox | |
// Apache 2.0 License | |
// Copyright 2024 Omid Haqi | |
// ignore_for_file: avoid_redundant_argument_values |
NewerOlder