温馨提示×

centos里flutter文档在哪找

小樊
39
2025-11-16 00:16:43
栏目: 智能运维

在 CentOS 上查找 Flutter 文档的常用方式

在线文档入口

  • 官方文档(英文):https://flutter.dev/docs
  • 中文文档镜像:https://flutter.cn/docs
  • 入门指南:https://flutter.dev/docs/get-started/intro
  • 安装指南:https://flutter.dev/docs/get-started/install
  • 官方示例与样例索引:https://github.com/flutter/flutter/tree/master/examples 与 https://flutter.github.io/samples/

离线文档与本地查看

  • 使用命令在终端快速打开文档首页(系统默认浏览器会打开):
    • 英文:open https://flutter.dev/docs
    • 中文:open https://flutter.cn/docs
    • 如提示 command not found,可先安装:sudo yum install -y xdg-utils
  • 下载离线 HTML 包(SDK 归档页含文档压缩包,下载后本地解压即可离线浏览):https://flutter.dev/docs/development/tools/sdk/archive
  • 查看本地 SDK 自带的帮助与命令提示:
    • flutter --help
    • flutter doctor --help

在 CentOS 终端里一键打开文档的小脚本

  • 新建文件:vim ~/flutter-docs.sh
  • 写入以下内容(按需选择英文或中文):
    #!/usr/bin/env bash
    open https://flutter.cn/docs   # 中文
    # open https://flutter.dev/docs   # 英文
    
  • 赋权并运行:
    chmod +x ~/flutter-docs.sh
    ~/flutter-docs.sh
    

实用提示

  • 若网络访问受限,优先使用中文镜像站点(flutter.cn),或在 SDK 归档页下载离线文档包进行本地查看。

0