mkobuolys / flutter-design-patterns Goto Github PK
View Code? Open in Web Editor NEWFlutter Design Patterns application
License: MIT License
Flutter Design Patterns application
License: MIT License
build failed running in ios
** BUILD FAILED **
Xcode's output:
↳
: Error: No named parameter with the name 'builder'.
lib/navigation/router.gr.dart:20
builder: (_) {
^^^^^^^
: Context: Found this candidate, but the arguments don't match.
../…/router/auto_route_page.dart:64
MaterialPageX({
^^^^^^^^^^^^^
: Error: No named parameter with the name 'builder'.
lib/navigation/router.gr.dart:25
builder: (data) {
^^^^^^^
: Context: Found this candidate, but the arguments don't match.
../…/router/auto_route_page.dart:64
MaterialPageX({
^^^^^^^^^^^^^
Failed to package /Users/kanakapallianurag/Downloads/flutter-design-patterns-master.
Command PhaseScriptExecution failed with a nonzero exit code
Hi , thanks for your amazing and inspiring repo,
I just found that in this File class, you didn't implement the 'accept' method of the iFile interface despite that you have used 'implement' keyword here
It would be nice to zoom images provided in the markdown files of the design patterns.
This feature is already implemented with #24, but due to changes in the codebase and migration to Dart null-safety the code is already outdated and this solution should be reworked.
StreamController.broadcast() seems redundant, maybe try to modify it to StreamController().
Although it looks like the ObserverExample uses the stockStream.listen() twice, but since the two StreamControllers are different, So there will be no error exception, it may not be necessary to use StreamController.broadcast().
hi, first of all, I want to thank you for your amazing repo,
I just noticed that in the referenced function (stopStreaming) you turned the lights On which is already on, based on your previous function (startStreaming), and is there any reason to add turnLightsOn() again?
thank you in advance for your clarification
void startStreaming(SmartHomeState smartHomeState) {
smartHomeState.lightsOn = smartHomeApi.turnLightsOn();
smartHomeState.tvOn = tvApi.turnOn();
gamingFacade.startStreaming(smartHomeState);
}
void stopStreaming(SmartHomeState smartHomeState) {
gamingFacade.stopStreaming(smartHomeState);
smartHomeState.tvOn = tvApi.turnOff();
smartHomeState.lightsOn = smartHomeApi.turnLightsOn();
}
Tried to build apk.
[INFO] Generating build script...
[INFO] Generating build script completed, took 1.1s
[INFO] Initializing inputs
[INFO] Reading cached asset graph...
[INFO] Reading cached asset graph completed, took 423ms
[INFO] Checking for updates since last build...
[INFO] Checking for updates since last build completed, took 2.0s
[INFO] Running build...
[INFO] Running build completed, took 75ms
[INFO] Caching finalized dependency graph...
[INFO] Caching finalized dependency graph completed, took 294ms
[INFO] Succeeded after 410ms with 0 outputs (0 actions)
PS C:\Users\haris\OneDrive\Documents\My Repo\flutter-design-patterns> flutter build apk --split-per-abi
💪 Building with sound null safety 💪
/C:/FlutterSDK/flutter/.pub-cache/hosted/pub.dartlang.org/auto_route-2.4.2/lib/src/router/provider/auto_route_information_provider.dart:28:8: Error: The method 'AutoRouteInformationProvider.routerReportsNewRouteInformation' doesn't have the named parameter 'type' of overridden method 'RouteInformationProvider.routerReportsNewRouteInformation'.
void routerReportsNewRouteInformation(RouteInformation routeInformation,
^
/C:/FlutterSDK/flutter/packages/flutter/lib/src/widgets/router.dart:1329:8: Context: This is the overridden method ('routerReportsNewRouteInformation').
void routerReportsNewRouteInformation(RouteInformation routeInformation, {required RouteInformationReportingType type}) {}
^^^^^^^^^^^^^
/C:/FlutterSDK/flutter/.pub-cache/hosted/pub.dartlang.org/auto_route-2.4.2/lib/src/router/delegate/auto_router_delegate.dart:43:43: Error: Required named parameter 'type' must be provided.
?.routerReportsNewRouteInformation(
^
FAILURE: Build failed with an exception.
* Where:
Script 'C:\FlutterSDK\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1070
* What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
> Process 'command 'C:\FlutterSDK\flutter\bin\flutter.bat'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 39s
Running Gradle task 'assembleRelease'... 41.3s
Gradle task assembleRelease failed with exit code 1```
can i publish your work(app) in playstore? i like to study when travelling. by the way awesome work.
Good work!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.