Skip to content

raphaelbarbosaqwerty/Blog-Flutter-web-markdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Blog Flutter Markdown source

Simple static blog in Flutter using MD files.

Important Observations

  • This code will be refactored in the future.

Live example

Approaches and additional information

  • I decided to use the Clean-dart/clean-architecture on this project for training. There are still some things that can be improved.

Main libs

  • Fluro (Routing).
  • Get_it (Dependency Injection).
  • flutter_markdown (Read the markdown files).
  • rx_notifier (State management).

Versions (Important)

  • Flutter SDK = 1.22.5

How to use

  • Clone this repository.
  • Open the blog_flutter_fluro_template and type this in the terminal:
flutter clean
flutter pub get

Tests

  • I have written some tests using TDD to follow the clean approach. You can check this by just typing this on the terminal:
flutter test

Based

  • Design based in Artem Sheludko please, check his work.

Modifications

  • Template size: folder core/design/widget_configuration.dart.
  • Top menu and Bottom menu: core/design/components/*.
  • Name, title, colors: core/utils/constants.dart.
  • Routing (Fluro): folder core/router/blog_router.dart.
  • Dependency injection: main.dart

Building

  • Easy to build and deploy:
flutter build web
  • Access the folder build/web copy all files and just upload.

New post

  • Put your file in assets/markdown_posts/ example: assets/markdown_posts/about/0-about.md.
  • Please use the default structure for everything works, check in the example: assets/markdown_posts/about/0-about.md.
  • For each new post, you put in the assets/markdown_posts/ you need to build a new version, with flutter build web.

Post structure

Post names

  • For convetion is good to use for example:
0-welcome.md
1-about.md
2-something.md
3-other.md
..
99-amazing-information.md
  • Because the list of posts is ordered using the numbers.

Images

About

Simple blog with Flutter using for md files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published