Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Building a drawing App with CustomPainter.pdf
Search
Carlos J
April 01, 2022
27
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Building a drawing App with CustomPainter.pdf
Carlos J
April 01, 2022
Featured
See All Featured
So, you think you're a good person
axbom
PRO
2
2.2k
ラッコキーワード サービス紹介資料
rakko
1
5.3M
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
550
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
2
410
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
2
360
Documentation Writing (for coders)
carmenintech
77
5.6k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.4k
HDC tutorial
michielstock
2
960
Practical Orchestrator
shlominoach
192
12k
Unsuck your backbone
ammeep
672
58k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.3k
A Modern Web Designer's Workflow
chriscoyier
699
190k
Transcript
Building a drawing app with CustomPainter Por Carlos Javier Gutiérrez
Sánchez
https://linktr.ee/carlosjgs
Who has ever heard about CustomPainter?
Who has ever used CustomPainter?
CustomPainter gives us access to a drawing canvas
CustomPainter nos da acceso a un canvas para dibujar
CustomPainter nos da acceso a un canvas para dibujar
CustomPainter nos da acceso a un canvas para dibujar
You can draw anything you want using the Canvas API
You can draw anything you want using the Canvas API
You can draw anything you want using the Canvas API
Let’s see an example
None
None
None
None
None
None
None
Any question so far?
None
None
Dock colores Undo Clear
Tools
1. Persisting changes 2. Modeling the Canvas 3. User interaction
4. Demo Drawing app
1. Persisting changes 2. Modeling the Canvas 3. User interaction
4. Demo Drawing app
We need to keep the state of our Canvas items
outside of our CustomPainter
1. Persisting changes 2. Modeling the Canvas 3. User interaction
4. Demo Drawing app
FreehandLine StraightLine Circle
• Posición • Grosor brocha • Color brocha • Relleno
CanvasElement
• Posición • Grosor brocha • Color brocha • Relleno
CanvasElement
• Posición • Grosor brocha • Color brocha • Relleno
CanvasElement
1. Persisting changes 2. Modeling the Canvas 3. User interaction
4. Demo Drawing app
How do we add interactivity?
We simply can parametrize our CustomPainter!
None
DateTime.now()
None
None
Remember about the state?
State
Estado
None
State
None
None
Circle tool
…what about the CustomPainter?
None
Demo time!
Thanks! Connect with me Connect with GDSC