youth95 / flutter_stu

Home Page:https://flutter-stu.showcase.youth95.cn

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flutter STU

CI Vercel

用于学习 Flutter 各项特性的项目。在里面测试各种Flutter的【特技】。

国际化

https://flutter.cn/docs/development/accessibility-and-localization/internationalization

flutter pub add flutter_localizations --sdk=flutter
flutter pub add intl:any

CICD

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: CI

on:
  push:
    branches: ['master']
  pull_request:
    branches: ['master']

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v3
      - uses: subosito/flutter-action@v2
        with:
          flutter-version: '3.10.1'
          channel: 'stable'
      - run: flutter --version
      - run: flutter build web
      - run: ls build/web
      - uses: amondnet/vercel-action@v25
        continue-on-error: true
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          vercel-token: ${{ secrets.VERCEL_TOKEN }}
          vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
          vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
          working-directory: build/web
          alias-domains: |
            flutter-stu.showcase.youth95.cn

媒体查询

  • 通过媒体查询使用不同的布局

特性验证

  • 长图文列表滚动
  • 路由切换
  • 下拉加载 / 刷新

About

https://flutter-stu.showcase.youth95.cn


Languages

Language:C++ 43.2%Language:CMake 35.6%Language:Dart 11.5%Language:HTML 3.5%Language:Swift 3.3%Language:C 2.7%Language:Kotlin 0.2%Language:Objective-C 0.1%