pokeball_widget 1.0.0+2 copy "pokeball_widget: ^1.0.0+2" to clipboard
pokeball_widget: ^1.0.0+2 copied to clipboard

A Pokeball CustomPaint widget to draw a simple minimal pokeball.

pokeball_widget #

A Pokeball CustomPaint widget to draw a simple minimal pokeball.

Usage #

For more usages check the examples folder

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Builder(
        builder: (context) => Scaffold(
          body: Center(
            // Squared container for the pokeball
            child: SizedBox(
              height: MediaQuery.of(context).size.width / 2,
              width: MediaQuery.of(context).size.width / 2,
              child: PokeBallWidget(
                color: Theme.of(context).textTheme.bodyText2?.color ?? Colors.black,
              ),
            ),
          ),
        ),
      ),
    );
  }
}

Examples #

1
likes
130
pub points
22%
popularity

Publisher

verified publisherdeb95.dev

A Pokeball CustomPaint widget to draw a simple minimal pokeball.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on pokeball_widget