All Projects → cfug → Flutter.cn

cfug / Flutter.cn

Licence: other
Flutter CN docs translation plan, get started from the wiki: https://github.com/cfug/flutter.cn/wiki

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to Flutter.cn

Mola
A Modular Optimization framework for Localization and mApping (MOLA)
Stars: ✭ 206 (-3.29%)
Mutual labels:  localization
Omegat
Mirror of official OmegaT repo
Stars: ✭ 210 (-1.41%)
Mutual labels:  localization
Taxi Booking App
This is a complete ride booking app, It uses google maps cordova plugin, firebase database and onesignal as notification provider.
Stars: ✭ 212 (-0.47%)
Mutual labels:  scss
Vue2.0 Multi Page
基于vue-cli(vue2.X,webpack1.X,es6,sass环境)多页面开发
Stars: ✭ 206 (-3.29%)
Mutual labels:  scss
Bitrix Project
Заготовка 1C Bitrix проекта: автозагрузка, композер, базовые ООП компоненты, миграции, модели, современный фронтенд стек, инструменты для деплоя.
Stars: ✭ 207 (-2.82%)
Mutual labels:  scss
Typesetter
Open source CMS written in PHP focused on ease of use with true WYSIWYG editing and flat-file storage.
Stars: ✭ 212 (-0.47%)
Mutual labels:  scss
Vue Impression
A Vue.js 2.0 UI elements for mobile.
Stars: ✭ 205 (-3.76%)
Mutual labels:  scss
Style Resources Loader
CSS processor resources loader for webpack
Stars: ✭ 214 (+0.47%)
Mutual labels:  scss
Colors.lol
🎨 Overly descriptive color palettes
Stars: ✭ 207 (-2.82%)
Mutual labels:  scss
Redhatofficial.github.io
The official Red Hat project page.
Stars: ✭ 211 (-0.94%)
Mutual labels:  scss
Django Static Precompiler
Django Static Precompiler provides template tags and filters to compile CoffeeScript, LiveScript, SASS / SCSS, LESS, Stylus, Babel and Handlebars. It works with both inline code and external files.
Stars: ✭ 206 (-3.29%)
Mutual labels:  scss
Express React Redux Starter
Starter for Express, React, Redux, SCSS applications
Stars: ✭ 207 (-2.82%)
Mutual labels:  scss
Flutter sheet localization
Generate Flutter localization from a simple online Google Sheets.
Stars: ✭ 212 (-0.47%)
Mutual labels:  localization
Scsscale
Typographic modular scale starter based on body's font-size built on SCSS.
Stars: ✭ 206 (-3.29%)
Mutual labels:  scss
Serge
Continuous localization platform
Stars: ✭ 212 (-0.47%)
Mutual labels:  localization
Web Portfolio
Personal portfolio website made with the React
Stars: ✭ 207 (-2.82%)
Mutual labels:  scss
Debugged.it
Stars: ✭ 211 (-0.94%)
Mutual labels:  scss
Hugo Theme Codex
A minimal blog theme for Hugo 🍜
Stars: ✭ 212 (-0.47%)
Mutual labels:  scss
Automatic App Landing Page
A Jekyll theme for automatically generating and deploying landing page sites for mobile apps.
Stars: ✭ 2,575 (+1108.92%)
Mutual labels:  scss
Run Aspnetcore Realworld
E-Commerce real world example of run-aspnetcore ASP.NET Core web application. Implemented e-commerce domain with clean architecture for ASP.NET Core reference application, demonstrating a layered application architecture with DDD best practices. Download 100+ page eBook PDF from here ->
Stars: ✭ 208 (-2.35%)
Mutual labels:  scss

Flutter's website Flutter logo

Build Status

Table of contents

Issues, bugs, and requests

We welcome contributions and feedback on our website! Please file a request in our issue tracker and we'll take a look.

NOTE: For simple changes (such as to CSS and text), you probably don't need to build this site. Often, you can make changes using the GitHub UI. If you want/need to build, read on.

Before you build this site

1. Get the prerequisites

Install the following tools, if you don't have them already.

  • bash, the Bourne shell. These instructions assume you're using bash -- setup might not work if you use another shell.

  • nvm, the Node Version Manager.

    NOTE: To make nvm immediately available in your current shell, run source <PATH_TO_INSTALLATION>. For example:

    $ source ~/.nvm/nvm.sh
    
  • rvm, the Ruby Version Manager.

    NOTE: To make rvm immediately available in your current shell, run source <PATH_TO_INSTALLATION>. For example:

    $ source ~/.rvm/bin/rvm
    
  • Flutter (You get Dart when you get Flutter. Confirm with which flutter and which dart.)

  • GNU diffutils version 3.6 or later.

    NOTE: diff v3.6+ is required to ensure that in-page code diffs are consistently refreshed across macOS and Linux. Issue #3076 was due to the default macOS diff being at v2.x. To upgrade diffutils, run:

    $ brew install diffutils
    

IMPORTANT: Follow the installation instructions for each of the tools carefully. In particular, configure your shell/environment so that the tools are available in every terminal/command window you create.

2. Clone this repo and its submodules

NOTE: This repo has git submodules, which affects how you clone it.

To clone flutter/website (this repo), follow the instructions given in the GitHub help on Cloning a repository, then choose one of the following submodule-cloning techniques:

  • Clone this repo and its submodule at the same, use the --recurse-submodules option:

    $ git clone --recurse-submodules https://github.com/flutter/website.git
    

    OR

  • If you've already cloned this repo without its submodule, then run this command from the repo root:

    $ git submodule update --init --remote
    

NOTE: At any time during development you can use the git submodule command to refresh submodules:

$ git pull; git submodule update --init --remote

3. Run installation scripts

NOTE: It is safe to (re-)run all of the commands and scripts given below even if you already have the required packages installed.

Open a bash terminal/command window and execute the following commands:

  1. After you have cloned this repo, change to the root of this repo:

    $ cd <PATH_TO_REPO>
    
  2. Run the env-set.sh script to initialize environment variables, and to install/use required Node & Ruby version:

    $ source ./tool/env-set.sh
    
  3. Run before-install.sh to install the core set of required tools:

    $ ./tool/before-install.sh
    
  4. Run install.sh to install everything else needed to build this site:

    $ ./tool/install.sh
    

IMPORTANT:

  • Any time you create a new terminal/command window to work on this repo, repeat steps 1 and 2 above.

Developing and serving changes

  1. After you clone this repo, create a branch. For example:

    $ git checkout -b <BRANCH_NAME>
    
  2. Make your changes, then commit them to the branch.

  3. Test your changes by serving the site locally. To serve locally, run either one of these commands:

    • $ ./tool/serve.sh # or npm run start
      

    OR

    • $ bundle exec jekyll serve --incremental --watch --livereload --port 4002
      

      NOTE: Unless you're editing files under site-shared, you can safely ignore ERROR: directory is already being watched messages. For details, see #1363.

      NOTE: The first time you run either one of these commands, Jekyll takes anywhere between 10-20 seconds to generate static content inside the _sites directory. If you try to verify the site locally, but aren't able to see the content right away, wait 20 seconds before stopping the server or concluding that something is wrong.

  4. Before submitting, validate site links:

    $ ./tool/shared/check-links.sh
    

TIP: Sometimes Jekyll gets confused and seems to be out-of-sync. (This might happen, for example, when you pull from master and lots of files have moved.) To fix Jekyll, stop the serve.sh script, remove the generated site files: hand, and then restart the serve.sh script:

$ npm run clean

OR

$ jekyll clean

OR

$ rm -Rf ./_site/* ./.jekyll*

Next, restart the serve.sh script:

$ npm run start

OR

$ ./tool/serve.sh

Creating and/or editing DartPad example code

Most of the code used to create DartPad examples is hosted on GitHub. However, this repo also contains some .dart files responsible for DartPad example code.

DartPad example code in GitHub gists

A typical DartPad example takes the form of an iframe, for example, within a codelab's markdown file:

<iframe
  src="{{site.custom.dartpad.embed-flutter-prefix}}?id=d7b09149ffee2f0535bb0c04d96987f5"
  style="border: 1px solid lightgrey; margin-top: 10px; margin-bottom: 25px"
  frameborder="no" height="500" width="100%"
></iframe>

This iframe depends on the following GitHub gist url:

https://gist.github.com/d7b09149ffee2f0535bb0c04d96987f5

For detailed instructions on how to use this approach to DartPad examples, see the DartPad embedding guide.

DartPad example code in this repo - src/_packages/dartpad_picker

Some DartPad example code remains in .dart files in this repo, and must be compiled via src/_packages/dartpad_picker/compile.sh. For an example, consult src/_packages/dartpad_picker/web/dartpad_picker_main.dart.

In order to create or change example code using dartpad_picker, you must regenerate the JavaScript:

  $ cd src/_packages/dartpad_picker
  $ ./compile.sh

Deploy to a staging site

You can deploy your local edits to a personal staging site as follows.

  1. Serve your changes locally, as previously instructed. Keep the serve.sh script running in its own bash shell.

  2. In the Firebase Console, create your own Firebase project (e.g. my-foo). You only need to do this step once.

  3. In a separate bash shell, change to the repo directory and initialize Firebase:

    $ npx firebase init
    
  4. Tell Firebase about your project with the firebase use command You only need to do this step once:

    $ npx firebase use --add
    ? Which project do you want to add? <select the project you created>
    ? What alias do you want to use for this project? (e.g. staging) my-foo
    
  5. Tell Firebase that you want to deploy to staging:

    $ npx firebase use my-foo
    Now using alias staging (my-foo)
    
  6. Tell Firebase to execute deployment of your project:

$ npx firebase deploy

Your personal version of the Flutter website is now deployed to Firebase. Copy the serving URL from the command output.

Alternate deployment script

Alternatively, you can skip the previous steps and just use the deploy script:

$ ./tool/shared/deploy.sh --local my-foo

=== Deploying to '<your project name>'...

i  deploying hosting
i  hosting: preparing _site directory for upload...
✔  hosting: 213 files uploaded successfully
i  starting release process (may take several minutes)...

✔  Deploy complete!

Deploying to the official site

As of Feb 23, 2021, official site deploys are performed by GitHub Actions. In the event that you need to manually deploy, use the deploy script and the default project:

$ ./tool/shared/deploy.sh --local --robots ok default

Writing for flutter.dev

The site-shared repo contains infrastructure shared by most of our Dart and Flutter websites. Some of this README is in the doc directory in the site-shared repo.

For more information on using and writing for this repo, refer to the following docs:

Also check out the site-shared wiki:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].