blobs 2.0.0 copy "blobs: ^2.0.0" to clipboard
blobs: ^2.0.0 copied to clipboard

Create beautiful blobs - fixed/random blob generation, animations, svgs and more

example/lib/main.dart

import 'package:blobs/blobs.dart';
import 'package:example/examples/examples.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primarySwatch: Colors.blue,
        textTheme: GoogleFonts.manropeTextTheme(
          Theme.of(context).textTheme.apply(
                bodyColor: Color(0xff596275),
              ),
        ),
      ),
      home: Examples(), // Examples() for all demo
    );
  }
}

class BasicExample extends StatelessWidget {
  const BasicExample({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    BlobController blobCtrl = BlobController();
    return Scaffold(
      appBar: AppBar(title: Text('Blobs Example')),
      body: Center(
        child: Column(
          mainAxisSize: MainAxisSize.min,
          children: [
            Container(
              child: Blob.random(
                size: 400,
                controller: blobCtrl,
              ),
            ),
            FlatButton(
              child: Text('Randomize'),
              onPressed: () {
                BlobData blobData = blobCtrl.change();
                print(blobData);
              },
            ),
          ],
        ),
      ),
    );
  }
}
338
likes
120
pub points
89%
popularity

Publisher

unverified uploader

Create beautiful blobs - fixed/random blob generation, animations, svgs and more

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on blobs