LoginSignup
0
0

More than 3 years have passed since last update.

Dart x Flutter MokuMoku Live Coding 2020/09/12

Last updated at Posted at 2020-09-12

Dart と Flutter で 何か作る..

もくもく会での作業中のLive Coding 動画です

詳細は追ってまとめます

Code

成果物について

Screen Shot 2020-09-12 at 20.25.37.png

今後の課題

DuckDuckGoすると、デザインされたメニューなど見ると
https://t.co/LADyeBbOU8?amp=1
List表示みたいな事はしてなくて
色々と工夫がされている

そういうのを反映していきたい

Know-How

vscode の 正規表現でAssetsの文字列をconstの変数に変換した。

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

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";


0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0