This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:http/http.dart' as http; | |
| import 'dart:convert'; | |
| import 'package:flutter/material.dart'; | |
| void main() async { | |
| var jsonDomain = "gist.githubusercontent.com"; | |
| var jsonUrl = "hongsw/bda2f942a8a8c32f5cd0a49b5650b062/raw/01c789addcab42ed3ff6e8587b21f31c92abd55c/webtoon.json"; | |
| var response = await http.get(Uri.https(jsonDomain,jsonUrl)); | |
| var toons = json.decode(utf8.decode(response.bodyBytes)); | |
| runApp(MaterialApp( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| class Webtoon extends StatelessWidget { | |
| String image, title; | |
| Webtoon({required this.image, required this.title}); | |
| @override | |
| Widget build(BuildContext context) { | |
| return Column( | |
| children: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| class Webtoon extends StatelessWidget { | |
| Webtoon({key, required this.image, required this.title}) : super(key: key); | |
| String image; | |
| String title; | |
| @override | |
| Widget build(BuildContext context) { | |
| return Column(children: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:convert'; | |
| import 'package:http/http.dart'; | |
| import 'package:flutter/material.dart'; | |
| void main() async { | |
| const jsonUrl = "hongsw/67e0d72dffa2908e1715dc89a7b0e802/raw/9c5b1388bd52396ff1917b6928f3bda5fcd3b5c7/webtoon.json"; | |
| var toons = []; | |
| try{ | |
| var response = await get(Uri.https("gist.githubusercontent.com", jsonUrl)); | |
| toons = json.decode(response.body)['webtoon']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:http/http.dart' as http; | |
| import 'dart:convert'; | |
| import 'package:flutter/material.dart'; | |
| void main() async { | |
| var jsonDomain = "gist.githubusercontent.com"; | |
| var jsonUrl = "hongsw/67e0d72dffa2908e1715dc89a7b0e802/raw/9c5b1388bd52396ff1917b6928f3bda5fcd3b5c7/webtoon.json"; | |
| var response = await http.get(Uri.https(jsonDomain,jsonUrl)); | |
| var items = json.decode(utf8.decode(response.bodyBytes)); | |
| var toons = items['toons']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| void main() { | |
| final toons = [ | |
| { | |
| "title": "์ด์ํ ๋ณํธ์ฌ ์ฐ์์ฐ", | |
| "image": "https://my-k-toon.web.app/webtoon/1.png" | |
| }, | |
| { | |
| "title": "์ธ๋ชจ์ง์์ฃผ์", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| void main() { | |
| final toon = [ | |
| { | |
| "title": "์ด์ํ ๋ณํธ์ฌ ์ฐ์์ฐ", | |
| "image": "https://my-k-toon.web.app/webtoon/1.png" | |
| }, | |
| { | |
| "title": "์ธ๋ชจ์ง์์ฃผ์", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:core'; | |
| import 'package:flutter/material.dart'; | |
| void main(){ | |
| runApp(MaterialApp( | |
| title: 'Flutter Demo', | |
| debugShowCheckedModeBanner: false, | |
| theme: ThemeData( | |
| primarySwatch: Colors.lightGreen, | |
| ), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:core'; | |
| import 'dart:convert'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:http/http.dart' as http; | |
| void main(){ | |
| runApp(MainFullDemo()); | |
| } | |
| class MainFullDemo extends StatelessWidget { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "webtoon": [ | |
| { | |
| "id": "1", | |
| "title": "์ด์ํ ๋ณํธ์ฌ ์ฐ์์ฐ", | |
| "author": "์ ์ผ / ํ์์กฐ,์ด์์ง", | |
| "desc": "์ธํด ๋ณํธ์ฌ๊ฐ ๋ ์ฐ์์ฐ. ์์ ์ ๋ฅ๋ ฅ์ ์ฆ๋ช ..", | |
| "link": "https://comic.naver.com/webtoon/list?titleId=798173", | |
| "image": "https://my-k-toon.firebaseapp.com/images/ktoon/1-only-image.png" | |
| }, |