搜索插件、代码仓与 APP 分类

GitHub 代码仓lazycatlabs/flutter_auth_app

flutter_auth_app

带有 TDD 清洁架构的 Flutter 认证应用

flutter_auth_app 项目封面
星标
270
复刻
78
最近推送(UTC)
2026年9月14日
项目状态
未归档

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

We stand with Palestine


Flutter App Auth 📱

codecov

LinkedIn

This app has Auth Functions like Login, Register, and Show pagination data.

Authentication uses LazyAuth, while the paginated Dashboard user list uses DummyJSON.


This app also implementing Flutter Clean Architecture with TDD.

https://github.com/user-attachments/assets/f994e992-9161-46c3-8f0b-cd582c56bea2

Pre-requisites 📐

Technology Recommended Version Installation Guide
Flutter v3.44.x Flutter Official Docs
Dart v3.12.x Installed automatically with Flutter

Get Started 🚀

  • Clone this project
  flutter pub get 
  • Run to generate localization files
flutter gen-l10n
  • Run to generate freezes files
flutter pub run build_runner build --delete-conflicting-outputs
  • Run for staging or
flutter run --flavor stg -t lib/main.dart --dart-define-from-file .env.stg.json 
  • Run for production
flutter run --flavor prd -t lib/main.dart --dart-define-from-file .env.prd.json 
  • Test Coverage, we ignore some folders and files which is not necessary to test coverage because it are generated file
  • Note: on macOS, you need to have lcov installed on your system (brew install lcov) to use this:
 flutter test -j8 --coverage;lcov --remove coverage/lcov.info 'lib/core/localization/generated/' 'lib/core/resources/*' 'lib/utils/services/firebase/*' '**/*.g.dart' -o coverage/new_lcov.info ;genhtml coverage/new_lcov.info -o coverage/html
  • To generate a launcher icon based on Flavor
dart run flutter_launcher_icons 
  • To generate native splash screen
dart run flutter_native_splash:create --flavors stg,prd
  • To generate mock class
dart pub run build_runner build

Feature ✅

  • [x] BLoC State Management
  • [x] Clean Architecture with TDD
    • [x] Unit Test
    • [x] Widget Test
    • [x] BLoC test
  • [x] Theme Configuration: System, Light, Dark
  • [x] Multi-Language: English, Bahasa
  • [x] Login, Register Example
  • [x] Pagination Example
  • [x] Autofill Username and Password
  • [x] Integration Test
  • [x] Implement multi-flavor
  • [x] Auto routing based on login status
  • [x] Implement Go Router

TODO 📝

  • [ ] Login with Biometric / FaceID

Maestro Test 🧪

  • Install Maestro on your machine Maestro
  • Run this command to run the test
     maestro test maestro-stg/main.yaml #or
     maestro test maestro-prd/main.yaml
    

Architecture Proposal by Resocoder


architecture-proposal

💡Tips

  • Flutter native splashscreen: The brand image in Android > 12 the frame size is 5:2, if the width is 500px, the height should be 500/2,5 = 200px

📜 GNU General Public License v3.0



Buy me coffee if you love my works ☕️

buymeacoffe      ko-fi      paypal saweria



LazycatLabs GitHub avatar
GitHub 作者

LazycatLabs ↗

LazycatLabs Playground

语言DartSwiftPythonKotlinObjective-C

使用的依赖

依赖清单 33 项

所在榜单

如何选择适合项目的代码仓?

先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。

  1. 通过仓库名、作者或描述搜索,再按技术分类缩小范围。
  2. 结合星标、复刻与最近推送比较项目;星标反映社区关注,不代表质量保证。
  3. 使用前在 GitHub 核对 README、许可证与 Issues。

来源与维护

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗