8
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

逆引きFlutter

Last updated at Posted at 2021-07-05

Flutterの学習がてら、bookmark-with-image(Electron + Vue.js)のFlutterへの移植に挑戦した。(ひとまずは一部分の機能のみであるが、移植版はbookmark_with_image_flutterに置いている。)この過程で学習した事項を以下に整理した。

Dartの基本を学ぶ

開発環境を構築する (Windows)

Windowsアプリ(Beta)をビルドする

画面(ページ)切り替えを実装する

  • 以下のいずれかの方法で実現できる。
    • Navigate to a new screen and back
      • Navigator.push()/Navigator.pop()で遷移・戻るを実装する。
    • Navigate with named routes
      • MaterialAppのコンストラクタにてルーティング設定(initialRouteとroutes)を定義して、Navigator.pushNamed()でルートの名前指定で遷移する。

Widgetを跨いだ状態管理

トーストの出し方

URLを開く

  • url_launcherを使う。(参考

    • flutter pub add した後のビルドで以下のエラーが出力されるが、管理者モードで起動したコマンドプロンプトでflutter runをすると以後は問題なくビルドできるようになった。(原因は深追いしていないが、#66973#72762あたりが関係してそう)

      Exception: Building with plugins requires symlink support. Please enable Developer Mode in your system settings.
      

スクレイピング

画像ファイルのダウンロード・保存

ウィンドウ幅に応じた折り返し表示

  • Wrapで囲んであげればよい。(参考

一部分のみスクロールバーを表示する

Containerにクリックイベントを設定する

OSのコマンドを実行する

SQLiteでデータを永続化する

8
9
0

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
8
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?