example/kitchen: add ProgressBar example v1 PROPOSED

metaclips: 1
 example/kitchen: add ProgressBar example

 1 files changed, 3 insertions(+), 0 deletions(-)
> If you have the time, perhaps also make the progress bar
> animated over time
Ideas I have on animation
1. We could call drawink (same as button click animation) when the
progress value changes
2. We could change colours at certain progress value
more here https://medium.com/@calebkiage/creating-an-animated-progress-indicator-in-flutter-part-1-c7a95453a883

Any you'd recommend?

On Fri, Mar 27, 2020 at 11:07 AM Elias Naur <mail@eliasnaur.com> wrote:
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~eliasnaur/gio-patches/patches/10071/mbox | git am -3
Learn more about email & git

[PATCH] example/kitchen: add ProgressBar example Export this patch

Updates the kitchen example codebase showing ProgressBar functionality.

Signed-off-by: metaclips <utimichael9@gmail.com>
 example/kitchen/kitchen.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/example/kitchen/kitchen.go b/example/kitchen/kitchen.go
index 50ff846..b07e2de 100644
--- a/example/kitchen/kitchen.go
+++ b/example/kitchen/kitchen.go
@@ -204,6 +204,9 @@ func kitchen(gtx *layout.Context, th *material.Theme) {
		func() {
			th.ProgressBar().Layout(gtx, 10)
		func() {
			th.CheckBox("Checkbox").Layout(gtx, checkbox)
2.21.1 (Apple Git-122.3)
Thanks. Could you increase the window height to keep the bottom radio
buttons visible? If you have the time, perhaps also make the progress bar
animated over time. Or leave it as is, up to you.

BTW, are you sending your two changes as two separate patches? If so I'd
like to point out that you can send more than one commit in a patch:

	git send-email origin/master # or,say, HEAD~2

the sr.ht web flow supports several commits per patch as well.

On Thu Mar 26, 2020 at 20:59, metaclips wrote:
View this thread in the archives