Giter Club home page Giter Club logo

web-demo's Introduction

web_demo

Flutter 3.19.3 快速构建的一个站点样例,长期维护。

在线预览:https://webdemo.oldbird.run

安装

  1. git clone https://github.com/swiftdo/web-demo

  2. 安装 fvm 工具: leoafarias/fvm

    $ cd web-demo
    $ fvm install
    $ fvm flutter run -d Chrome

支持运行到 macos 上

$ cd web-demo
$ fvm flutter run -d macos

功能

  • 文章的添加
  • 文章详情
  • 文章搜索
  • 文章管理,添加和删除
  • 分类管理,添加和删除
  • 文章的阅读数
  • 站点UI设计修改
  • 添加站点的留言功能
  • 站点字体修改?
  • 文章是否需要添加评论功能?
  • 人员管理,是否要支持多用户?

配套课程

web 开发存在的一些问题

1.包体积太大

可通过编译选项控制,【编译渲染项】

2.中文显示有问题

flutter bug, 解决进度可关注:Load fonts as soon as detecting browser locale

编译渲染项设置为 html,不会出现该问题。

3.页面刷新,或者指定 url 无法打开页面

跟 url 策略有关

  • HashUrlStrategy,hash 路由,带有#, 可直接 github 静态托管
  • PathUrlStrategy, history 路由,也可以直接 github 托管,但是刷新页面会出问题,此类,需要 nginx 做个配置,单页面实际上只有一个页面 index.html,因此将所有的页面都 rewirte 到 index 页面,即可完成配置
location @router {
    rewrite ^.*$ /index.html break;
}

4. SEO 问题

建立一个 seo 友好的网站意味着谷歌和其他搜索引擎可以高效地抓取网站上的每个页面,有效地解释内容,并将其索引到数据库中。一旦编入索引,他们就可以根据用户搜索的主题向用户提供最相关、最有价值的网页。

Flutter Web 的 SEO 能力支持不友好。

可关注该问题 How Manage SEO In flutter web?

Stargazers over time

Stargazers over time

web-demo's People

Contributors

oheroj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

web-demo's Issues

favicon问题请教

favicon.png 在web里替换了,浏览器标签还是一直显示flutter的favicon.
这个您看有思路解决吗

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.