Skip to content

Instantly share code, notes, and snippets.

@TechieBlossom
Created January 13, 2023 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TechieBlossom/db7671994b91dfbef0749484e71991f2 to your computer and use it in GitHub Desktop.
Save TechieBlossom/db7671994b91dfbef0749484e71991f2 to your computer and use it in GitHub Desktop.
Custom Paint with CustomPainter
CustomPaint(
painter: HexagonPainter(radius: radius),
)
class HexagonPainter extends CustomPainter {
const HexagonPainter({
required this.radius,
});
final double radius;
@override
void paint(Canvas canvas, Size size) {
final center = Offset(size.width / 2, size.width / 2);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment