Skip to content

Instantly share code, notes, and snippets.

View fredgrott's full-sized avatar
👾
focusing on flutter cross platform mobile dev

Fred Grott fredgrott

👾
focusing on flutter cross platform mobile dev
View GitHub Profile
@fredgrott
fredgrott / snippet.dart
Created September 15, 2025 18:06
Material Symbol Icon theme settings for Material 3 Expressive, article at
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',
@fredgrott
fredgrott / snippet.dart
Created September 15, 2025 17:52
Material Symbol Icon individual icon settings for Material 3 Expressive, article at
final myIcon = Icon( Symbols.settings,
fill: 1, weight: 700, grade: 0.25, opticalSize: 48 );
@fredgrott
fredgrott / snippet.dart
Created September 15, 2025 17:20
Material Symbol Icon get style of access for Material 3 Expressive, article at
// `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);
@fredgrott
fredgrott / snippet.dart
Created September 15, 2025 17:17
Material Symbol Icon simple example for Material 3 Expressive, article at:
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);
dependencies:
material_symbols_icons: ^4.2873.0
@fredgrott
fredgrott / home_page.dart
Created August 16, 2025 17:19
blurbox home page part of demo
// 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
@fredgrott
fredgrott / snippet.dart
Created August 16, 2025 17:04
bl;urbox home page snippet
@override
Widget build(BuildContext context) {
// the right place to insert the BackdropGroup
// inherited widget is here to wrap the scaffold
// it will automatically group child
// BackdropFilter.grouped declarations together
// in one Scene layer without having to specify
// a backdropKey.
return BackdropGroup(
child: Scaffold(
@fredgrott
fredgrott / snippet.dart
Created August 15, 2025 19:13
blurbox class snippet
@override
Widget build(BuildContext context) {
return Material(
color: Colors.transparent,
elevation: elevation,
borderRadius: borderRadius,
child: ClipRRect(
borderRadius: borderRadius,
// required for performance reasons due to scene builder
// as we want all the backdropFilters in one layer
@fredgrott
fredgrott / extension_methods_example.dart
Created August 15, 2025 15:50
ext methods ex blur box
// 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
import 'package:flutter/material.dart';
import 'package:glass_widget/blurbox/core/extensions.dart';
@fredgrott
fredgrott / extensions.dart
Created August 15, 2025 15:03
extensions on blur box
// 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
import 'package:flutter/material.dart';
import 'package:glass_widget/blurbox/core/blur_box.dart';