svg_splitter 1.0.2 copy "svg_splitter: ^1.0.2" to clipboard
svg_splitter: ^1.0.2 copied to clipboard

A Dart tool to automatically split SVG files into static and dynamic parts for Flutter theming. Perfect for creating themed icons that change colors based on app themes.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'app.dart';
import 'bloc/theme_bloc.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return BlocProvider(
      create: (_) => ThemeBloc(),
      child: BlocBuilder<ThemeBloc, Color>(
        builder: (context, primaryColor) {
          return MaterialApp(
            title: 'SVG Splitter Demo',
            debugShowCheckedModeBanner: false,
            theme: ThemeData(
              colorScheme: ColorScheme.fromSeed(
                seedColor: primaryColor,
                brightness: Brightness.light,
              ),
              useMaterial3: true,
            ),
            home: const App(),
          );
        },
      ),
    );
  }
}
3
likes
0
points
324
downloads

Publisher

unverified uploader

Weekly Downloads

A Dart tool to automatically split SVG files into static and dynamic parts for Flutter theming. Perfect for creating themed icons that change colors based on app themes.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on svg_splitter