pokeball

Simple custom painter pokeball widget.

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

Libraries

pokeball