Skip to content

Instantly share code, notes, and snippets.

@hongsw
Created October 31, 2022 07:51
Show Gist options
  • Save hongsw/bda1fd7a56e2c22d52fbaea1a03c7322 to your computer and use it in GitHub Desktop.
Save hongsw/bda1fd7a56e2c22d52fbaea1a03c7322 to your computer and use it in GitHub Desktop.
3.3-변수이용하여 화면구성

3.3-변수이용하여 화면구성

Created with <3 with dartpad.dev.

import 'package:flutter/material.dart';
void main() {
final toon = [
{
"title": "이상한 변호사 우영우",
"image": "https://my-k-toon.web.app/webtoon/1.png"
},
{
"title": "외모지상주의",
"image": "https://my-k-toon.web.app/webtoon/2.png"
}
];
runApp(MaterialApp(
home: Scaffold(
appBar: AppBar(title: Text("내폰내툰")),
body: Row(children: [
Column(children: [
Image.network(toon[0]['image']!),
Text(toon[0]['title']!)]),
Column(children: [
Image.network(toon[1]['image']!),
Text(toon[1]['title']!)])
]))));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment