DEV Community

kyorohiro (kiyohiro kawamura)
kyorohiro (kiyohiro kawamura)

Posted on • Edited on

1

Dart x Flutter MokuMoku Live Coding 12/09/2020

I'll make something with Dart and Flutter while doing live coding on 12/09/2020

Code

https://github.com/kyorohiro/mokumoku02

Live Coding Address

https://youtu.be/meWE25TzQHo

/* I'll create a url for live coding on 12/09/2020.. */

What is mokumoku

For the time being, people who are interested in a certain theme gather and do their own work. Just that.

Event Page For JP

https://8beat-mokumoku-2020.connpass.com/event/188590/

History

  • Dart x Flutter MokuMoku Live Stream 05/09/2020

https://dev.to/kyorohiro/dart-x-flutter-mokumoku-live-stream-2020-09-05-30oa

Result

Alt Text

know-how

Assets Path String into const variable

at regex in vscode

1 "xxxx/yyy/xxx.jpg" -> "xxxx/yyy/xxx.jpg = 'xxxx/yyy/xxx.jpg'"

at following regex expression
(.*)
$1 = $1

2 "xxxx/yyy/xxx.jpg = 'xxxx/yyy/xxx.jpg'" -> "xxxx_yyy_xxx_jpg = 'xxxx/yyy/xxx.jpg'"

at following regex expression

(.*)\/(.*) = (.*)
$1_$2 = $3
Enter fullscreen mode Exit fullscreen mode

geenrate assets.dart

const images_food_pizza_slice_fast_jpg = "assets/images/food_pizza_slice_fast.jpg";
const images_food_dim_sum_squid_jpg = "assets/images/food_dim_sum_squid.jpg";
const images_food_chili_cheese_bowls_jpg = "assets/images/food_chili_cheese_bowls.jpg";
const images_flower_orange_calendula_bright_0_jpg = "assets/images/flower_orange_calendula_bright_0.jpg";
const images_food_pasta_tomato_theme_jpg = "assets/images/food_pasta_tomato_theme.jpg";
const images_food_purple_chocolate_dessert_jpg = "assets/images/food_purple_chocolate_dessert.jpg";


Enter fullscreen mode Exit fullscreen mode

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Sentry mobile image

App store rankings love fast apps - mobile vitals can help you get there

Slow startup times, UI hangs, and frozen frames frustrate users—but they’re also fixable. Mobile Vitals help you measure and understand these performance issues so you can optimize your app’s speed and responsiveness. Learn how to use them to reduce friction and improve user experience.

Read full post →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay