Git Product home page Git Product logo

bmi_calculator's People

Contributors

marcinusx avatar

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

bmi_calculator's Issues

Hello my friend, do you have any idea why this is happening?

Launching lib\main.dart on Android SDK built for x86 in debug mode...
Built build\app\outputs\apk\debug\app-debug.apk.
I/Choreographer( 1502): Skipped 34 frames! The application may be doing too much work on its main thread.
D/EGL_emulation( 1502): eglMakeCurrent: 0xef97f2e0: ver 3 0 (tinfo 0xe8273cd0)
I/OpenGLRenderer( 1502): Davey! duration=729ms; Flags=1, IntendedVsync=55229025141473, Vsync=55229591808117, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=55229594840430, AnimationStart=55229595609460, PerformTraversalsStart=55229595819700, DrawStart=55229622915100, SyncQueued=55229641538330, SyncStart=55229649316520, IssueDrawCommandsStart=55229649994050, SwapBuffers=55229719895430, FrameCompleted=55229762241850, DequeueBufferDuration=26679000, QueueBufferDuration=2305000,
D/ ( 1502): HostConnection::get() New Host Connection established 0xe7cfde40, tid 1559
D/EGL_emulation( 1502): eglMakeCurrent: 0xef97f400: ver 3 0 (tinfo 0xe8273970)

Throws Error

The following assertion was thrown building GenderCard(dirty, dependencies: [MediaQuery], state: _GenderCardState#eeae4):
'package:flutter/src/widgets/transitions.dart': Failed assertion: line 125 pos 15: 'listenable != null': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=BUG.md

User-created ancestor of the error-causing widget was:
Expanded file:///D:/FlutterProjects/simple_bmi_app/lib/input_page.dart:59:17
When the exception was thrown, this was the stack:
#2 new AnimatedWidget (package:flutter/src/widgets/transitions.dart:125:15)
#3 new GenderArrow (package:simple_bmi_app/gender_card.dart:210:57)
#4 _GenderCardState._drawCircleIndicator (package:simple_bmi_app/gender_card.dart:90:9)
#5 _GenderCardState._drawMainStack (package:simple_bmi_app/gender_card.dart:75:11)
#6 _GenderCardState.build (package:simple_bmi_app/gender_card.dart:61:22)
...

how to comput _offsetToMiddleIndex

hello
I do not understand how comput _offsetToMiddleIndex in class WeightSlider
what return notification.metrics.pixels ?
why in method _offsetToMiddleIndex width / 2 ?

i search for understand it but I didn't get any results!!!

Does Not Work in Latest flutter update. Please Fix

Resolving dependencies... 9.7s

Compiler message:
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.5.5+1/lib/src/picture_provider.dart:312:20: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.

  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('/C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
    context: 'while resolving a picture',
    ^
    /C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.5.5+1/lib/src/picture_provider.dart:314:33: Error: The argument type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable Function()'.
  • 'StringBuffer' is from 'dart:core'.
  • 'Iterable' is from 'dart:core'.
  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('/C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'Iterable Function()'.
    informationCollector: (StringBuffer information) {
    ^
    /C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.5.5+1/lib/src/picture_provider.dart:407:31: Error: The argument type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable Function()'.
  • 'StringBuffer' is from 'dart:core'.
  • 'Iterable' is from 'dart:core'.
  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('/C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'Iterable Function()'.
    informationCollector: (StringBuffer information) {
    ^
    /C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.5.5+1/lib/src/picture_provider.dart:467:31: Error: The argument type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable Function()'.
  • 'StringBuffer' is from 'dart:core'.
  • 'Iterable' is from 'dart:core'.
  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('/C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'Iterable Function()'.
    informationCollector: (StringBuffer information) {
    ^
    /C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.5.5+1/lib/src/picture_provider.dart:540:31: Error: The argument type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable Function()'.
  • 'StringBuffer' is from 'dart:core'.
  • 'Iterable' is from 'dart:core'.
  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('/C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'Iterable Function()'.
    informationCollector: (StringBuffer information) {
    ^
    /C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.5.5+1/lib/src/picture_stream.dart:223:18: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.
  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('/C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
    context: context));
    ^
    /C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.5.5+1/lib/src/picture_stream.dart:267:18: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.
  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('/C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
    context: 'resolving a single-frame picture stream',
    ^
    /C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.5.5+1/lib/src/svg/xml_parsers.dart:295:18: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.
  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('/C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
    context: 'in _getDefinitionPaint',
    ^
    /C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.5.5+1/lib/src/svg/xml_parsers.dart:297:31: Error: The argument type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable Function()'.
  • 'StringBuffer' is from 'dart:core'.
  • 'Iterable' is from 'dart:core'.
  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('/C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'Iterable Function()'.
    informationCollector: (StringBuffer buff) {
    ^
    /C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.5.5+1/lib/src/svg_parser.dart:81:29: Error: The argument type 'Null Function(StringBuffer)' can't be assigned to the parameter type 'Iterable Function()'.
  • 'StringBuffer' is from 'dart:core'.
  • 'Iterable' is from 'dart:core'.
  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('/C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'Iterable Function()'.
    informationCollector: (StringBuffer buff) {
    ^
    /C:/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_svg-0.5.5+1/lib/src/svg_parser.dart:92:16: Error: The argument type 'String' can't be assigned to the parameter type 'DiagnosticsNode'.
  • 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('/C:/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
    Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
    context: 'in parseSvgElement',
    ^
    Compiler failed on C:\Users\HP\Downloads\Compressed\bmi_calculator-master\lib\main.dart

FAILURE: Build failed with an exception.

  • Where:
    Script 'C:\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 765

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebugX86'.

Process 'command 'C:\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 48s

Not working in latest version of flutter 1.9.1+hotfix2

See error code....
03:15:21.315 44 info flutter.tools Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
03:15:21.315 45 info flutter.tools context: 'in _getDefinitionPaint',
03:15:21.315 46 info flutter.tools ^
03:15:21.316 47 info flutter.tools - 'StringBuffer' is from 'dart:core'.
03:15:21.316 48 info flutter.tools - 'Iterable' is from 'dart:core'.
03:15:21.317 49 info flutter.tools - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('../../development/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
03:15:21.317 50 info flutter.tools Try changing the type of the parameter, or casting the argument to 'Iterable Function()'.
03:15:21.317 51 info flutter.tools informationCollector: (StringBuffer buff) {
03:15:21.317 52 info flutter.tools ^
03:15:21.319 53 info flutter.tools
03:15:21.319 54 info flutter.tools - 'StringBuffer' is from 'dart:core'.
03:15:21.319 55 info flutter.tools - 'Iterable' is from 'dart:core'.
03:15:21.319 56 info flutter.tools - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('../../development/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
03:15:21.319 57 info flutter.tools Try changing the type of the parameter, or casting the argument to 'Iterable Function()'.
03:15:21.319 58 info flutter.tools informationCollector: (StringBuffer buff) {
03:15:21.319 59 info flutter.tools ^
03:15:21.321 60 info flutter.tools - 'DiagnosticsNode' is from 'package:flutter/src/foundation/diagnostics.dart' ('../../development/flutter/packages/flutter/lib/src/foundation/diagnostics.dart').
03:15:21.321 61 info flutter.tools Try changing the type of the parameter, or casting the argument to 'DiagnosticsNode'.
03:15:21.321 62 info flutter.tools context: 'in parseSvgElement',
03:15:21.321 63 info flutter.tools ^
03:15:23.549 64 info flutter.tools Compiler failed on /Users/bharat/Downloads/bmi_calculator-master/lib/main.dart
03:15:23.549 65 info flutter.tools Error launching application on iPhone XR.

FlutterDriver tests needed

Yeah I know FlutterDriver feels a lot like Selenium-1 (RC) and not much like Selenium-2+ (WebDriver) but it is the only way for now - If we're teaching people we should teach testing best practices too.

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.