Try Flutter: write a boring App (with Flutter experience)

Keywords: Android github JSON Swift git

Today's X

Github: https://github.com/shuiRong/T... (today's X)

This is a boring App written by Flutter

Recommend a different one every day: picture, poem, famous saying, music, music review, advanced mathematics, two kinds of color matching, chemical equation, Github Repo, Zhihu problem.

(P.S. except that the picture is from Bing homepage, only one picture per day, other pages support pull-down refresh to update the content)

Download APK

Flutter's first experience: to play Swift: p

How to run:

First of all, make sure you have the local environment and official documents required for the project English Course Chinese document

Download items:

git clone https://github.com/shuiRong/TodayX
cd ./TodayX

Before running the project, you need to connect the mobile phone to the computer through USB or start the simulator, and follow the official tutorial.

Then run the project:

(if you use Visual Studio Code for development, you can also use VSC for the whole process instead of the following command line: see Sub sections 2 and 3)

// Installation project dependency
flutter packages get
// Operation item
flutter run

Third party data used in the project

Thanking the author

  • Poetry: https://api.gushi.ci/all.json

    // 20190526231929
    {
      "content": "Yongji bullies cats and mice, and Lin Zang chases birds and bunches.",
      "origin": "The Mid Autumn Festival's chanting of huaibai by Du Zimei and the sending of a fake Mr. mingsang in Liuzhou",
      "author": "Wei",
      "category": "Ancient poetry and prose-Animal-Writing cat"
    }
  • Famous saying: https://v1.hitokoto.cn/

    // 20190526232311
    {
      "id": 14,
      "hitokoto": "Use your smile to change the world. Don't let the world change your smile.",
      "type": "a",
      "from": "network",
      "creator": "Sauce seven",
      "created_at": "1468605909"
    }
  • Bing homepage: https://cn.bing.com/hpimagearchive.aspx? Format = JS & IDX = 0 & n = 1

    // 20190526232348
    {
      "images": [
        {
          "startdate": "20190525",
          "fullstartdate": "201905251600",
          "enddate": "20190526",
          "url": "/th?id=OHR.MarathonduMont_ZH-CN5049722437_1920x1080.jpg&rf=LaDigue_1920x1080.jpg&pid=hp",
          "urlbase": "/th?id=OHR.MarathonduMont_ZH-CN5049722437",
          "copyright": "Mount St. Michel (© Leroy Francis/Getty Images)",
          "copyrightlink": "http://www.bing.com/search?q=%E5%9C%A3%E7%B1%B3%E6%AD%87%E5%B0%94%E5%B1%B1&form=hpcapt&mkt=zh-cn",
          "title": "",
          "quiz": "/search?q=Bing+homepage+quiz&filters=WQOskey:%22HPQuiz_20190525_MarathonduMont%22&FORM=HPQUIZ",
          "wp": true,
          "hsh": "02a3db999f76ec114c45de97cecc30ac",
          "drk": 1,
          "top": 1,
          "bot": 1,
          "hs": [
          ]
        }
      ],
      "tooltips": {
        "loading": "Loading...",
        "previous": "Previous image",
        "next": "Next image",
        "walle": "This picture cannot be downloaded for wallpaper.",
        "walls": "Download today's Meitu. For desktop wallpaper only."
      }
    }
  • Music: https://music.aityp.com/playlist/detail?id=145787433

    Too much content for display
  • Netease cloud comments: https://api.comments.hk/

    // 20190526232507
    {
      "song_id": 480426313,
      "title": "There For You",
      "images": "https://p2.music.126.net/E_ffmvXrVZoTugVf_Zf4Cg==/18520173860179248.jpg",
      "author": "Martin Garrix",
      "album": "There For You",
      "description": "Singer: Martin Garrix. Album: There For You. ",
      "mp3_url": "https://api.comments.hk/music/480426313",
      "pub_date": "2017-05-25 16:00:00",
      "comment_id": 393094070,
      "comment_user_id": 267009137,
      "comment_nickname": "I don't eat fish",
      "comment_avatar_url": "https://p1.music.126.net/HC5zku5foEI_rIP9YShyoQ==/109951164014518098.jpg",
      "comment_liked_count": 25271,
      "comment_content": "Congratulations\"Pony stamp\"New single birth of combination!!I'm looking forward to their next cooperation. I hope Martin doesn't bend. Don't bend. Hahahaha[love][love][love][love]",
      "comment_pub_date": "2017-05-25 16:01:38"
    }
  • Random color: https://randoma11y.com/stats

    Too much content for display
  • Github Trending: https://github-trending-api.now.sh/repositories

    Too much content for display
  • Zhihu Daily: https://news-at.zhihu.com/api/4/news/latest

    // 20190526232635
    {
      "date": "20190526",
      "stories": [
        {
          "images": [
            "https://pic2.zhimg.com/v2-58b5abf70967054a9a057d4f1da8f811.jpg"
          ],
          "type": 0,
          "id": 9711762,
          "ga_prefix": "052622",
          "title": "Trifle · How much will you pay to save your parents' lives?"
        }
         ...
      ],
      "top_stories": [
        {
          "image": "https://pic2.zhimg.com/v2-0dc73b026624fc19637c5cb25ff679a9.jpg",
          "type": 0,
          "id": 9711735,
          "ga_prefix": "052507",
          "title": "Why can't the milk be sold out, rather than being poured out for free?"
        }
        ...
      ]
    }
  • Today in history: https://api.ooopn.com/history/api.php?type=json

    // 20190526232721
    {
      "code": "200",
      "day": "2019 May 26, 2006",
      "content": [
        "Liu junrang, Emperor Shundi, Liu Song, and Emperor xiaodaocheng",
        "Edward baud Alexander was born",
        "The first Opium War British army attacked Guangzhou City for the first time",
        "The death of general he Chun in Qing Dynasty",
        "Queen Mary was born",
        "The stock index created by Charles Dow, an American journalist, was first released",
        "Russian Czar Nicholas II ascends the throne in St. Petersburg",
        "American movie star John Wayne was born",
        "Manchester United manager Matt Busby was born",
        "American journalist Jacob Reese dies",
        "The death of Japanese general Yoshizawa Shirakawa",
        "China's first successful ground to ground medium range missile launch",
        "Japanese cartoonist and Yue xunhong were born",
        "The death of German philosopher Martin Heidegger",
        "Peking Opera artist Meng Xiaodong dies"
      ]
    }

Posted by m00p4h on Mon, 04 Nov 2019 12:18:11 -0800