svgl_flutter
An open-source Flutter package that offers a collection of high-quality brand SVG logos as a simple, typed widget with complete autocomplete support.
Powered by the official pheralb/svgl repository.
Features
- Single
Svglwidget — no class name conflicts - Typed logo constants via
SvglLogos - Light and dark mode variants when available
- Tree-shakable — only logos you use are compiled in
Installation
dependencies:
svgl_flutter: ^0.0.1
Or with the Flutter CLI:
flutter pub add svgl_flutter
Usage
Visit svgl.app to browse available logos.
import 'package:svgl_flutter/svgl_flutter.dart';
// Basic usage
Svgl(logo: SvglLogos.flutter, width: 48)
// Light / dark variants
Svgl(logo: SvglLogos.appleLight, width: 32)
Svgl(logo: SvglLogos.appleDark, width: 32)
// With color filter
Svgl(
logo: SvglLogos.github,
width: 24,
colorFilter: const ColorFilter.mode(Colors.white, BlendMode.srcIn),
)
Ecosystem
- svgl-react for the React ecosystem.
- svgl-vue for the Vue ecosystem.
- svgl-svelte for the Svelte ecosystem.