flutter_mesh_gradients 0.1.0
flutter_mesh_gradients: ^0.1.0 copied to clipboard
A Flutter package for creating beautiful, highly customizable fluid mesh gradients with custom shaders and static image export.
flutter_mesh_gradients #
A Flutter package for creating beautiful, highly customizable fluid mesh gradients using custom shaders.
Features #
- Fluid Animations: Create smooth, animated fluid mesh gradients.
- Custom Shaders: Utilizes Fragment Shaders for high-performance rendering.
- Customizable Parameters: Easily control properties like:
- Colors
- Amplitude
- Frequency
- Speed
- Blur
- Static Image Export: Support for exporting your gradients as static images.
Getting started #
Add the package to your pubspec.yaml:
dependencies:
flutter_mesh_gradients: ^0.1.0
Then, run:
flutter pub get
Usage #
Here is a basic example of how to use the flutter_mesh_gradients package:
import 'package:flutter/material.dart';
import 'package:flutter_mesh_gradients/flutter_mesh_gradients.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: SizedBox(
width: 300,
height: 300,
child: FluidMeshGradient(
options: MeshGradientOptions(),
),
),
),
),
);
}
}
Additional information #
For more details on customizable properties and advanced usage, please refer to the example project provided within the package.