Coder Social home page Coder Social logo

wisun / flutter-web-admin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kleong153/flutter-web-admin

0.0 1.0 0.0 1.91 MB

Responsive Flutter web with light/dark mode and multi language supported

License: BSD 3-Clause "New" or "Revised" License

Dart 98.90% HTML 1.10%

flutter-web-admin's Introduction

Flutter Web Admin Portal 中文说明

Responsive web with light/dark mode and multi language supported. The objective of this project is to develop an admin portal website with Flutter v3 (SDK version 3.10.1).

flutter_web_admin_demo.mp4

Screen Gif Demo

Live Preview

Website Demo

Login with demo account:
Username: admin
Password: admin

Challenges

  • Responsive layout: Common requirement for web project nowadays. Not an issue with Flutter. Somehow I miss the grid system in Bootstrap.
  • Light/dark mode: With this requirement, I have to deep dive into Flutter Theme and learn how to properly define theme and styles for the project.
  • Multi language: Also a common requirement for web project 😴.
  • Navigation: We know that Flutter Navigator 2.0 is complicated to implement, thanks to go_router package for reduce the complexity of development.
  • State management: I use provider package to manage user login state and website configs such as theme mode and language.
  • iFrame: iFrame is commonly used to display map, video etc on webpage. Unfortunately it does not work well with mouse pointer. I have to do some hack to "solve" the mouse pointer interceptor issue 😥.

My experience with this project

The good 😃:

  • Single code base for all. You can create beautiful and responsive webpage without HTML + JS + CSS, just Dart.
  • No need to worry CSS compatibility issue on different web browsers.
  • You can easily convert the web project to support other platforms like MacOS, Windows (Ya I know Electron can convert web project to desktop app too).
  • Many packages are supporting web platform.

The bad 😥:

  • Slow to load at first time. Webpage takes around 3-5 seconds to load as it required to download resources. It is getting worst with slow internet connection speed.
  • Performance. You will face UI jank on complex webpage.
  • Cannot inspect elements. As a web developer, we often use the web browser's developer tools to inspect elements in webpage, but unfortunately we can't do this with Flutter Web due to everything is draw on canvas. Wait, maybe it is also a good thing as nobody can copy/claw your content 🤔?
  • No text selection, right click context menu, horizontal scrolling with mouse wheel support by default.
  • Text/font rendering issue and UI blurry on PWA/desktop web browser.

Overall, this project development experience was pleasant for me. And I'm looking forward to seeing how Flutter Web will evolve in future releases.

Feel free to fork/clone this project and do whatever you wan 😄

flutter-web-admin's People

Contributors

kleong153 avatar wisun avatar

Watchers

 avatar

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.