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 |
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
@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( |
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
@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 |
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 | |
import 'package:flutter/material.dart'; | |
import 'package:glass_widget/blurbox/core/extensions.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
// 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'; |
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 | |
import 'dart:ui'; |
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
Widget blurry({ | |
double blur = 5.0, | |
Color color = Colors.transparent, | |
double elevation = 0.0, | |
EdgeInsetsGeometry padding = const EdgeInsets.all(8.0), | |
EdgeInsetsGeometry? margin, | |
AlignmentGeometry? alignment, | |
Clip clipBehavior = Clip.none, | |
BoxConstraints? constraints, | |
BoxDecoration? foregroundDecoration, |
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
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 | |
// requires using a BackdropGroup around the scaffold of app. | |
child: BackdropFilter.grouped( |
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 | |
import 'dart:ui'; |
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