ericwindmill / flutter_by_example_apps Goto Github PK
View Code? Open in Web Editor NEWThe apps built in the Flutter by Example tutorial
The apps built in the Flutter by Example tutorial
the use of onChanged: (v) => nameController.text = v, is giving issues. I dont think its important because you already use TextEditingController
Hi, thanks for these great example apps!
When running the inherited_widget_authentication code, I'm getting the following exception:
PlatformException (PlatformException(sign_in_required, com.google.android.gms.common.api.ApiException: 4: 4: , null))
Any idea about what's happening?
@ericwindmill,
Seeing following compilation error on flutter run in redux_app,
compiler message: lib/main.dart:25:18: Error: A value of type 'dart.core::List<(#lib1::Store<#lib2::AppState>, dynamic, (dynamic) → void) → void>' can't be assigned to a variable of type 'dart.core::Iterable<(#lib1::Store<#lib3::AppState>, dynamic, (dynamic) → void) → void>'. compiler message: Try changing the type of the left hand side, or casting the right hand side to 'dart.core::Iterable<(#lib1::Store<#lib3::AppState>, dynamic, (dynamic) → void) → void>'. compiler message: ..addAll(createAuthMiddleware(context)) compiler message: ^ compiler message: lib/main.dart:21:7: Error: A value of type '(#lib1::AppState, dynamic) → #lib1::AppState' can't be assigned to a variable of type '(#lib2::AppState, dynamic) → #lib2::AppState'. compiler message: Try changing the type of the left hand side, or casting the right hand side to '(#lib2::AppState, dynamic) → #lib2::AppState'.
Version
Flutter 0.3.2 • channel beta • https://github.com/flutter/flutter.git Framework • revision 44b7e7d3f4 (3 weeks ago) • 2018-04-20 01:02:44 -0700 Engine • revision 09d05a3891 Tools • Dart 2.0.0-dev.48.0.flutter-fe606f890b
Thoughts ?
Followed the redux example and when run for the basic counter go t this error
compiler message: lib/main.dart:21:7: Error: A value of type '(dynamic, dynamic) → #lib1::AppState' can't be assigned to a variable of type '(#lib2::AppState, dynamic) → #lib2::AppState'. compiler message: Try changing the type of the left hand side, or casting the right hand side to '(#lib2::AppState, dynamic) → #lib2::AppState'. compiler message: appReducer, compiler message: ^ Compiler failed on L:\Projects\Flutter\base_app\base_app\lib\main.dart
main.dart
`
void main() => runApp(new MainApp());
class MainApp extends StatelessWidget {
final String title = 'MeSuite';
MainApp();
@OverRide
Widget build(BuildContext context) {
var store;
store = new Store(
appReducer,
initialState: new AppState(),
distinct: true,
middleware: []
);
return new StoreProvider(
store: store,
child: new MaterialApp(
debugShowCheckedModeBanner: false,
title: title,
home:Welcome(title),
),
);
}
}`
app_reducer.dart AppState appReducer(state, action) { return new AppState( isLoading: false, count: counterReducer(state.count, action), ); //new }
`class AppState {
final int count;
final bool isLoading;
AppState({
this.count = 0,
this.isLoading = false,
});
model.dart
factory AppState.loading() => new AppState(isLoading: true);
AppState copyWith({int count, bool isLoading}) {
return new AppState(
count: count ?? this.count,
isLoading: isLoading ?? this.isLoading,
);
}
bool operator ==(Object other) =>
identical(this, other) ||
other is AppState &&
runtimeType == other.runtimeType &&
isLoading == other.isLoading &&
count == other.count ;
@OverRide
String toString() {
return 'AppState{isLoading: $isLoading, count: $count}';
}
}`
Hi, I'm still getting error when Open your Redux App Example:
Error connecting to the service protocol: HttpException: Connection closed before full header was received, uri = http://127.0.0.1:50466/ws
I/flutter (13364): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter (13364): The following assertion was thrown building MainApp(dirty):
I/flutter (13364): type 'List<TypedMiddleware<AppState, Object>>' is not a subtype of type 'Iterable<(Store,
I/flutter (13364): dynamic, (dynamic) => void) => void>'
I/flutter (13364): Either the assertion indicates an error in the framework itself, or we should provide substantially
I/flutter (13364): more information in this error message to help you determine and fix the underlying cause.
I/flutter (13364): In either case, please report this assertion by filing a bug on GitHub:
I/flutter (13364): https://github.com/flutter/flutter/issues/new?template=BUG.md
I/flutter (13364): When the exception was thrown, this was the stack:
I/flutter (13364): #0 MainApp.build (package:me_suite/main.dart:25:18)
I/flutter (13364): #1 StatelessElement.build (package:flutter/src/widgets/framework.dart:3774:28)
I/flutter (13364): #2 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3721:15)
I/flutter (13364): #3 Element.rebuild (package:flutter/src/widgets/framework.dart:3547:5)
I/flutter (13364): #4 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3701:5)
I/flutter (13364): #5 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3696:5)
I/flutter (13364): #6 Element.inflateWidget (package:flutter/src/widgets/framework.dart:2950:14)
I/flutter (13364): #7 Element.updateChild (package:flutter/src/widgets/framework.dart:2753:12)
I/flutter (13364): #8 RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:909:16)
I/flutter (13364): #9 RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:880:5)
I/flutter (13364): #10 RenderObjectToWidgetAdapter.attachToRenderTree. (package:flutter/src/widgets/binding.dart:826:17)
I/flutter (13364): #11 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2266:19)
I/flutter (13364): #12 RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:825:13)
I/flutter (13364): #13 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding&WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:712:7)
I/flutter (13364): #14 runApp (package:flutter/src/widgets/binding.dart:756:7)
I/flutter (13364): #15 main (package:me_suite/main.dart:11:16)
I/flutter (13364): #16 _startIsolate. (dart:isolate/runtime/libisolate_patch.dart:289:19)
I/flutter (13364): #17 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:171:12)
I/flutter (13364): ════════════════════════════════════════════════════════════════════════════════════════════════════
This is an issue.. eg example code not match the cocs and vice versa
Pretty please :p ? I’m trying to understand how this mysterious inherited theme widget works and i would love to check a working example.
Also sorry if i opened an issue that’s completely unrelated to the repo’s topic lol :p
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.