svgl_flutter 0.0.1 copy "svgl_flutter: ^0.0.1" to clipboard
svgl_flutter: ^0.0.1 copied to clipboard

Flutter widget library for brand SVG logos powered by svgl.app.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:svgl_flutter/svgl_flutter.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Svgl Flutter Example',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Svgl Flutter'),
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
      ),
      body: const Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Text(
              'Brand Logos powered by svgl.app',
              style: TextStyle(fontSize: 18, fontWeight: FontWeight.bold),
            ),
            SizedBox(height: 40),
            Row(
              mainAxisAlignment: MainAxisAlignment.center,
              children: [
                Column(
                  children: [
                    Svgl(logo: SvglLogos.flutter, width: 64),
                    Text('Flutter'),
                  ],
                ),
                SizedBox(width: 40),
                Column(
                  children: [
                    Svgl(logo: SvglLogos.gitHubDark, width: 64),
                    Text('GitHub'),
                  ],
                ),
              ],
            ),
          ],
        ),
      ),
    );
  }
}
1
likes
150
points
84
downloads

Documentation

API reference

Publisher

verified publisherthegem.dev

Weekly Downloads

Flutter widget library for brand SVG logos powered by svgl.app.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, flutter_svg

More

Packages that depend on svgl_flutter