GithubHelp home page GithubHelp logo

ntminhdn / flutter-bloc-cleanarchitecture Goto Github PK

View Code? Open in Web Editor NEW
397.0 397.0 177.0 1.62 MB

Shell 1.00% Kotlin 0.07% Ruby 0.27% Swift 0.22% Objective-C 0.01% Dart 97.30% Makefile 0.83% Batchfile 0.30%

flutter-bloc-cleanarchitecture's People

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  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  avatar  avatar  avatar  avatar  avatar

flutter-bloc-cleanarchitecture's Issues

UI Issue when using stack with sticky textfield the textfield is no floating with keyboard.

When I tried to create a ui using Stack and with sticky textfield, and when focus on textfield the keyboard is up but the textFiled is not come with keyboard. It remain to the same position.

WhatsApp.Video.2023-02-09.at.5.29.48.PM.mp4

Code:

`class _FeedDetailsPageState extends BasePageState<FeedDetailsPage, SearchBloc> {
@OverRide
void initState() {
super.initState();
}

@OverRide
void dispose() {
super.dispose();
}

@OverRide
Widget buildPage(BuildContext context) {
return Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar(
title: Text(
"",
style: AppTextStyles.s16w700Black(),
),
backgroundColor: ColorName.white,
elevation: 1,
iconTheme: const IconThemeData(color: ColorName.black),
centerTitle: true,
),
body: Stack(
children: [
SingleChildScrollView(
child: Container(
padding: const EdgeInsets.all(15),
child: Column(
children: [
FeedPostMaster(
type: "normal",
item: widget.item,
varient: "detail",
),
],
),
),
),
Positioned(
left: 0,
right: 0,
bottom: MediaQuery.of(context).viewInsets.bottom,
child: Container(
color: ColorName.white,
height: 80,
child: Column(
children: [
const Divider(color: ColorName.purpleLight),
Container(
margin: const EdgeInsets.symmetric(horizontal: 20),
height: 55,
child: TextFormField(
decoration: InputDecoration(
hintText: "Write a comment",
enabledBorder: OutlineInputBorder(
borderSide: BorderSide(
color: ColorName.blueBorder,
width: 2,
),
borderRadius: BorderRadius.circular(8),
),
border: OutlineInputBorder(
borderSide: BorderSide(
color: ColorName.blueBorder,
width: 2,
),
borderRadius: BorderRadius.circular(8),
),
),
),
),
],
),
),
),
],
),
);
}
}
`

how to use RouteGuards with AppRouter

i try use RouteGuards with AppRouter but get error "
_AssertionError ('package:get_it/get_it_impl.dart': Failed assertion: line 372 pos 7: 'instanceFactory != null': Object/factory with type RouteGuards is not registered inside GetIt.
(Did you accidentally do GetIt sl=GetIt.instance(); instead of GetIt sl=GetIt.instance;
Did you forget to register it?))"

image

Flavor Reading Problem

In the Qa environment, I runned the application in debug, but the app gives Flavor that develop.

Screenshot_1

Error from Clipboard to Data Model tool

Error from Clipboard to Data Model tool.
I use the tool nalsmobilebrain you shared: Clipboard to Data Model, when Enter after entering the model name, the following error always appears "exactly" those words no matter what is in my clipboard.
image

Err: the JSON is invalid: JSONError: Unexpected token '�', "�J뢰��z-~)ݱ"... is not valid JSON while parsing '�J뢰��z-~)ݱ����������٢����מ�ק�*'���y��y�鹹'

I use Flutter 3.13.1 and windows.

Maybe the error comes from incompatibility with the windows clipboard, I understand you only support Macos.

Can you fix it, or share the source code of the tool.
Or do I have to rewrite the tool from scratch?

I look forward to receiving feedback from you on the above issue.
Thanks!

Bloc test

Hi, can you add a bloc test example for the Login page?

Error when run make sync

melos exec
└> flutter packages pub run build_runner build --delete-conflicting-outputs
└> FAILED (in 4 packages)
└> shared (with exit code 78)
└> data (with exit code 78)
└> domain (with exit code 78)
└> app (with exit code 78)
I met this error when "make sync" generate file.

So I try to run in a package "flutter packages pub run build_runner build --delete-conflicting-outputs"
[INFO] Generating build script...
[INFO] Generating build script completed, took 729ms

[INFO] Precompiling build script......
[WARNING] ../../../flutter/.pub-cache/hosted/pub.dartlang.org/source_gen-1.2.7/lib/src/library.dart:166:70: Error: A value of type 'List' can't be returned from a function with return type 'Iterable'.

  • 'List' is from 'dart:core'.
  • 'ClassElement' is from 'package:analyzer/dart/element/element.dart' ('../../../flutter/.pub-cache/hosted/pub.dartlang.org/analyzer-4.7.0/lib/dart/element/element.dart').
  • 'Iterable' is from 'dart:core'.
  • 'EnumElement' is from 'package:analyzer/dart/element/element.dart' ('../../../flutter/.pub-cache/hosted/pub.dartlang.org/analyzer-4.7.0/lib/dart/element/element.dart').
    Iterable get enums => element.units.expand((cu) => cu.enums);
    ^
    [INFO] Precompiling build script... completed, took 1.4s

[SEVERE] Failed to precompile build script .dart_tool/build/entrypoint/build.dart.
This is likely caused by a misconfigured builder definition.

My "flutter doctor -v"
[✓] Flutter (Channel stable, 3.3.9, on macOS 13.1 22C65 darwin-x64, locale en-VN)
• Flutter version 3.3.9 on channel stable at /Users/tranhoang/Desktop/project/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision b8f7f1f986 (3 months ago), 2022-11-23 06:43:51 +0900
• Engine revision 8f2221fbef
• Dart version 2.18.5
• DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc5)
• Android SDK at /Users/tranhoang/Library/Android/sdk
• Platform android-33, build-tools 31.0.0-rc5
• ANDROID_HOME = /Users/tranhoang/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14C18
• CocoaPods version 1.11.3

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)

[✓] IntelliJ IDEA Ultimate Edition (version 2022.1.4)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.75.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.58.0

[✓] Connected device (2 available)
• iPhone 14 Pro (mobile) • 2AD12D89-5BE0-4B5A-B9DB-F1B3625BFEAC • ios • com.apple.CoreSimulator.SimRuntime.iOS-16-2 (simulator)
• Chrome (web) • chrome • web-javascript • Google Chrome 109.0.5414.119

[✓] HTTP Host Availability
• All required HTTP hosts are available

• No issues found!

Flutter 3.10.4

Hello. Will you update the project according to the current flutter version?

Problem with Generating the code

Greetings
First of All, I want to thank you for the huge effort building this boilerplate.
I have a problem with installing .. after I activated melos , when I run "dart run tools/gen_env.dart" it gives me this message
"Could not find package tools/gen_env.dart or file tools/gen_env.dart"
Can you please check it out ? or if you have a discord .. can you help me with it ?

About StateError (Bad state: Cannot add new events after calling close) problem

Hi,
When I follow these steps, I get the error that in the title;

1- I added the following code to the onpressed event of the login button on the
Search page;

commonBloc.add(constForceLogoutButtonPressed());

2- I ran the application, came to the search page and clicked the login button. The application was redirected to the login page.

3-I tried to login by entering random user information on the login page and got the following error;

Screenshot_1

separation by feature

Hello bro , I want ask u about why don't Folder separation by feature on modules like data , domain
like this data module :

Account feature
-- DataSource ( have 3 folders local | remote | Repository )
-local --> DB For Account (save user info ...etc )
- Remote --> Account Service (use api)
- Repository --> AccountRepositoryImpl
-

failed build resources

hello ,
when use make sync i have error

**resources:
Failed to build intl_utils:generate:
../../../../AppData/Local/Pub/Cache/hosted/pub.dev/dart_style-2.3.4/lib/src/source_visitor.dart:1286:38: Error: Type 'ExtensionTypeDeclaration' not found.
void visitExtensionTypeDeclaration(ExtensionTypeDeclaration node) {
^^^^^^^^^^^^^^^^^^^^^^^^
../../../../AppData/Local/Pub/Cache/hosted/pub.dev/dart_style-2.3.4/lib/src/source_visitor.dart:2630:43: Error: Type 'RepresentationConstructorName' not found.
void visitRepresentationConstructorName(RepresentationConstructorName node) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../../AppData/Local/Pub/Cache/hosted/pub.dev/dart_style-2.3.4/lib/src/source_visitor.dart:2636:39: Error: Type 'RepresentationDeclaration' not found.
void visitRepresentationDeclaration(RepresentationDeclaration node) {
^^^^^^^^^^^^^^^^^^^^^^^^^
../../../../AppData/Local/Pub/Cache/hosted/pub.dev/dart_style-2.3.4/lib/src/source_visitor.dart:1286:38: Error: 'ExtensionTypeDeclaration' isn't a type.
void visitExtensionTypeDeclaration(ExtensionTypeDeclaration node) {
^^^^^^^^^^^^^^^^^^^^^^^^
../../../../AppData/Local/Pub/Cache/hosted/pub.dev/dart_style-2.3.4/lib/src/source_visitor.dart:2630:43: Error: 'RepresentationConstructorName' isn't a type.
void visitRepresentationConstructorName(RepresentationConstructorName node) {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

../../../../AppData/Local/Pub/Cache/hosted/pub.dev/dart_style-2.3.4/lib/src/source_visitor.dart:2636:39: Error: 'RepresentationDeclaration' isn't a type.

void visitRepresentationDeclaration(RepresentationDeclaration node) {
^^^^^^^^^^^^^^^^^^^^^^^^^
../../../../AppData/Local/Pub/Cache/hosted/pub.dev/dart_style-2.3.4/lib/src/front_end/ast_node_visitor.dart:683:38: Error: Non-nullable variable 'forPartsPiece' must be assigned before it can be used.
pieces.give(ForPiece(forKeyword, forPartsPiece, body,
^^^^^^^^^^^^^


$ melos exec
└> flutter pub run intl_utils:generate
└> FAILED (in 1 packages)
└> resources (with exit code 1)

melos run l10n
└> dart pub global run melos exec --fail-fast --scope="resources" --flutter -- flutter pub run intl_utils:generate
└> FAILED
ScriptException: The script l10n failed to execute.
make: *** [sync] Error 1**

i try flutter 3.16.0
and 3.13.0

Errors after last update

Hello, I transferred the latest updates to my own project, but I am getting the following error;

Screenshot_1
Screenshot_2

Not able to update app version

I am trying to update app version in app/pubspec.yaml file but android/ios both are only showing default versions.
Is there any script or way to change app version easily
Also is there any way to update package name through script, please guide me.

Screenshot 2023-02-28 at 6 56 20 PM

Screenshot 2023-02-28 at 6 55 15 PM

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.