Giter Site home page Giter Site logo

smart_flare's Introduction

Hi there ๐Ÿ‘‹

My name is Dane Mackier. I am the creator of FilledStacks.

  • ๐Ÿ”ญ Over 2.7 million views
  • ๐ŸŒฑ Over 1.1 million blog sessions
  • โญ๏ธ Over 5.6k stars in github

Become a better Flutter engineer every week, in less then 10 minutes

smart_flare's People

Contributors

adawolfs avatar filledstacks avatar ganeshp0001 avatar gopalvirat 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

Watchers

 avatar  avatar  avatar  avatar

smart_flare's Issues

Problem with filename in CycleFlareActor

In "/lib/actors/cycle_flare_actor.dart" I had to change on Widget Build the filename, in fact every time I tried to use this actor, VSCode gave me problem as he didn't find any "button-animation.flr" asset in assets folder.

error with Uint32list durring gradle task 'assembledebug'

the message :


Compiler message:
file:///C:/Users/utilisateur/flutter/.pub-cache/hosted/pub.dartlang.org/flare_flutter-1.5.4/lib/flare.dart:1027:18: Error: The argument type 'Uint16List' can't be assigned to the parameter type 'Int32List'.
 - 'Uint16List' is from 'dart:typed_data'.
 - 'Int32List' is from 'dart:typed_data'.
Try changing the type of the parameter, or casting the argument to 'Int32List'.
        indices: _indices, textureCoordinates: _uvBuffer);
                 ^
Compiler failed on C:\Users\utilisateur\AndroidStudioProjects\flare_test2\lib\main.dart
Finished with error: Gradle task assembleDebug failed with exit code 1

I only create new project, add librady to the pubspec, add my assets, copy past the example and I have this error.

The setter 'imageFilter' isn't defined for the class 'Paint'.

I am using your regular example from github

this is my pubspec

smart_flare: ^0.2.8

This is my main

import 'package:flutter/material.dart';
import 'package:smart_flare/smart_flare.dart';

void main() => runApp(FlareDemo());

class FlareDemo extends StatefulWidget {
@OverRide
_FlareDemoState createState() => _FlareDemoState();
}

class _FlareDemoState extends State {
@OverRide
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.black,
body: SmartFlareActor(
width: 295.0,
height: 251.0,
filename: 'animations/rotating_star.flr'));
}
}

THIS IS THE ERROR MESSAGE I GET

Compiler message:
file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/flare_flutter-1.8.3/lib/flare.dart:1331:18: Error: The setter 'imageFilter' isn't defined for the class 'Paint'.

  • 'Paint' is from 'dart:ui'.
    Try correcting the name to the name of an existing setter, or defining a setter or field named 'imageFilter'.
    layerPaint.imageFilter = _blurFilter(baseBlurX, baseBlurY);
    ^^^^^^^^^^^
    file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/flare_flutter-1.8.3/lib/flare.dart:1347:13: Error: The setter 'imageFilter' isn't defined for the class 'Paint'.
  • 'Paint' is from 'dart:ui'.
    Try correcting the name to the name of an existing setter, or defining a setter or field named 'imageFilter'.
    ..imageFilter = _blurFilter(
    ^^^^^^^^^^^
    file:///C:/flutter/.pub-cache/hosted/pub.dartlang.org/flare_flutter-1.8.3/lib/flare.dart:1391:13: Error: The setter 'imageFilter' isn't defined for the class 'Paint'.
  • 'Paint' is from 'dart:ui'.
    Try correcting the name to the name of an existing setter, or defining a setter or field named 'imageFilter'.
    ..imageFilter = _blurFilter(
    ^^^^^^^^^^^
    Compiler failed on D:\FlutterDell\Test152-Flare2\BoringStarTest\boring_star_test\lib\main.dart

FAILURE: Build failed with an exception.

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

  • 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 10s
Finished with error: Gradle task assembleDebug failed with exit code 1

I get the same thing from flutter_flare

Update dependencies to support latest flare_flutter

The flare_flutter package is at 2.0.1 now which does not match given package requirements.

Running "flutter pub get" in beginning...                       
Because smart_flare >=0.2.7 depends on flare_flutter ^1.5.8 and xxx depends on flare_flutter ^2.0.1, smart_flare >=0.2.7 is forbidden.

Sliding through Active Areas

Hello, I'm looking for a way to make my animation reactive not only to touch in certain areas but also to slide through them. Can you guys add support for that? Or is there already a way to do it? Thanks.

Animation not triggered when coming back from a navigation

following the example everything works correctly but when a push page is incovated from the active area and then it becomes pop the on tap function is executed from the central icon but it does not perform the animation

the following message also appears:

I/flutter (24452): SmartFlare:Warning - If you are cycling through animations there's a high chance that you might need to set the animationRequired property on the Active area.

class _State extends State<ListVisitas> {
  
  var animationWidth = 195.0;
  var animationHeight = 151.0;

 
  @override
  Widget build(BuildContext context) {
    var activeAreas = [
      // Insert top-left
      ActiveArea(
          debugArea: true,
          area: Rect.fromLTWH(40, 20, 50, 40),
          
          animationName: 'image_tapped',
          onAreaTapped: () {
            Navigator.push(
              context,
              ScaleRoute(widget: Package()),
            );
          }),
      // Insert middle

      // Insert top-right
      ActiveArea(
          debugArea: true,
          area: Rect.fromLTWH(110, 20, 50, 40),
          
          animationName: 'image_tapped',
          onAreaTapped: () {
            Navigator.push(
              context,
              ScaleRoute(widget: PackageOther()),
            );
          }),
      // Insert bottom half area
      ActiveArea(
          debugArea: true,
          area: Rect.fromLTWH(75, 82, 50, 55),
          animationsToCycle: ['deactivate', 'activate'],
          onAreaTapped: () {
            print('Activate toggles!');
          }),
    ];

    return SafeArea(
      top: false,
      bottom: false,
      child: new Container(
        child: new Stack(
          alignment: Alignment.topLeft,
          children: <Widget>[
            Padding(
                child: ExpandItems(),
                padding: const EdgeInsets.only(top: 60.0)),
            
            GuillotineMenu(),
            Align(
                alignment: Alignment.bottomCenter,
                child: SmartFlareActor(
                  width: animationWidth,
                  height: animationHeight,
                  filename: 'assets/animate/buttoms.flr',
                  startingAnimation: 'deactivate',
                  activeAreas: activeAreas,
                )),
          ],
        ),
      ),
    );
  }
}

PanFlareActor throws error if activeAreas->RelativePanArea does not have debugArea value

First of all, thank you for your efforts & great package.
Following code throws a runtime exception if I do not include debugArea value. If I enter debugArea as true/false, it works as expected.

PanFlareActor(
        width: 135.0,
        height: size.height,
        filename: 'filepath',
        openAnimation: 'Open',
        closeAnimation: 'close',
        direction: ActorAdvancingDirection.RightToLeft,
        threshold: 20.0,
        reverseOnRelease: true,
        completeOnThresholdReached: true,
        activeAreas: [
          RelativePanArea(
            area: Rect.fromLTWH(0, 0.7, 1.0, 0.3),
          ),
        ],
      ),

onAreaTapped ran even though the guardComingFrom prevented the animation

It would make so much more sense if the developer doesn't have to make the same check that you have already made to prevent the playing of the animation.
I'm using code from your tutorial:
ActiveArea(
area: Rect.fromLTWH(
animationWidthThirds * 2,
0,
animationWidthThirds,
halfAnimationHeight,
),
guardComingFrom: ['deactivate'], //this helps to control the animation itself
animationName: 'image_tapped',
onAreaTapped: () { //makes no sense to call this function
print('Picture!'); //if you don't play the animation
},
),

I hope my suggestion makes sense and the outcome improves this awesome library!

I/flutter ( 6690): MediaQuery.of() called with a context that does not contain a MediaQuery.

This is your regular github https://github.com/FilledStacks/smart_flare - the example that you name in the readme file. I'm using pubspec


smart_flare: ^0.2.8

main.dart

import 'package:flutter/material.dart';
import 'package:smart_flare/smart_flare.dart';

void main() => runApp(FlareDemo());

class FlareDemo extends StatefulWidget {
@OverRide
_FlareDemoState createState() => _FlareDemoState();
}

class _FlareDemoState extends State {
@OverRide
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.black,
body: SmartFlareActor(
width: 295.0,
height: 251.0,
filename: 'animations/rotating_star.flr'));
}
}

Launching lib\main.dart on Android SDK built for x86 in debug mode...
[!] Your app isn't using AndroidX.
To avoid potential build failures, you can quickly migrate your app by following the steps on https://goo.gl/CP92wY.
Running Gradle task 'assembleDebug'...
I/flutter ( 6690): โ•โ•โ•ก EXCEPTION CAUGHT BY WIDGETS LIBRARY โ•žโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
I/flutter ( 6690): The following assertion was thrown building FlareDemo(state: _FlareDemoState#11c6e):
I/flutter ( 6690): MediaQuery.of() called with a context that does not contain a MediaQuery.
I/flutter ( 6690): No MediaQuery ancestor could be found starting from the context that was passed to MediaQuery.of().
I/flutter ( 6690): This can happen because you do not have a WidgetsApp or MaterialApp widget (those widgets introduce
I/flutter ( 6690): a MediaQuery), or it can happen if the context you use comes from a widget above those widgets.
I/flutter ( 6690): The context used was:
I/flutter ( 6690): Scaffold(dirty, state: ScaffoldState#a0c0f(lifecycle state: initialized, tickers: tracking 2
I/flutter ( 6690): tickers))
I/flutter ( 6690):
I/flutter ( 6690): When the exception was thrown, this was the stack:
I/flutter ( 6690): #0 MediaQuery.of (package:flutter/src/widgets/media_query.dart:696:5)
I/flutter ( 6690): #1 ScaffoldState.didChangeDependencies (package:flutter/src/material/scaffold.dart:1842:50)
I/flutter ( 6690): #2 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4051:12)
I/flutter ( 6690): #3 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3902:5)
I/flutter ( 6690): #4 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3084:14)
I/flutter ( 6690): #5 Element.updateChild (package:flutter/src/widgets/framework.dart:2887:12)
I/flutter ( 6690): #6 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3935:16)
I/flutter ( 6690): #7 Element.rebuild (package:flutter/src/widgets/framework.dart:3721:5)
I/flutter ( 6690): #8 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3907:5)
I/flutter ( 6690): #9 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4053:11)
I/flutter ( 6690): #10 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3902:5)
I/flutter ( 6690): #11 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3084:14)
I/flutter ( 6690): #12 Element.updateChild (package:flutter/src/widgets/framework.dart:2887:12)
I/flutter ( 6690): #13 RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:939:16)
I/flutter ( 6690): #14 RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:910:5)
I/flutter ( 6690): #15 RenderObjectToWidgetAdapter.attachToRenderTree. (package:flutter/src/widgets/binding.dart:856:17)
I/flutter ( 6690): #16 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2320:19)
I/flutter ( 6690): #17 RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:855:13)
I/flutter ( 6690): #18 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding&WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:736:7)
I/flutter ( 6690): #19 runApp (package:flutter/src/widgets/binding.dart:786:7)
I/flutter ( 6690): #20 main (package:boring_star_test/main.dart:5:16)
I/flutter ( 6690): #21 _runMainZoned.. (dart:ui/hooks.dart:216:25)
I/flutter ( 6690): #26 _runMainZoned. (dart:ui/hooks.dart:208:5)
I/flutter ( 6690): #27 _startIsolate. (dart:isolate-patch/isolate_patch.dart:301:19)
I/flutter ( 6690): #28 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)
I/flutter ( 6690): (elided 4 frames from package dart:async)
I/flutter ( 6690): โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
I/flutter ( 6690): โ•โ•โ•ก EXCEPTION CAUGHT BY WIDGETS LIBRARY โ•žโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
I/flutter ( 6690): The following assertion was thrown building FlareDemo(state: _FlareDemoState#4cf98):
I/flutter ( 6690): MediaQuery.of() called with a context that does not contain a MediaQuery.
I/flutter ( 6690): No MediaQuery ancestor could be found starting from the context that was passed to MediaQuery.of().
I/flutter ( 6690): This can happen because you do not have a WidgetsApp or MaterialApp widget (those widgets introduce
I/flutter ( 6690): a MediaQuery), or it can happen if the context you use comes from a widget above those widgets.
I/flutter ( 6690): The context used was:
I/flutter ( 6690): Scaffold(dirty, state: ScaffoldState#9c424(lifecycle state: initialized, tickers: tracking 2
I/flutter ( 6690): tickers))
I/flutter ( 6690):
I/flutter ( 6690): When the exception was thrown, this was the stack:
I/flutter ( 6690): #0 MediaQuery.of (package:flutter/src/widgets/media_query.dart:696:5)
I/flutter ( 6690): #1 ScaffoldState.didChangeDependencies (package:flutter/src/material/scaffold.dart:1842:50)
I/flutter ( 6690): #2 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4051:12)
I/flutter ( 6690): #3 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3902:5)
I/flutter ( 6690): #4 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3084:14)
I/flutter ( 6690): #5 Element.updateChild (package:flutter/src/widgets/framework.dart:2887:12)
I/flutter ( 6690): #6 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3935:16)
I/flutter ( 6690): #7 Element.rebuild (package:flutter/src/widgets/framework.dart:3721:5)
I/flutter ( 6690): #8 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3907:5)
I/flutter ( 6690): #9 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4053:11)
I/flutter ( 6690): #10 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3902:5)
I/flutter ( 6690): #11 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3084:14)
I/flutter ( 6690): #12 Element.updateChild (package:flutter/src/widgets/framework.dart:2887:12)
I/flutter ( 6690): #13 RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:939:16)
I/flutter ( 6690): #14 RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:910:5)
I/flutter ( 6690): #15 RenderObjectToWidgetAdapter.attachToRenderTree. (package:flutter/src/widgets/binding.dart:856:17)
I/flutter ( 6690): #16 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2320:19)
I/flutter ( 6690): #17 RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:855:13)
I/flutter ( 6690): #18 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding&WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:736:7)
I/flutter ( 6690): #19 runApp (package:flutter/src/widgets/binding.dart:786:7)
I/flutter ( 6690): #20 main (package:boring_star_test/main.dart:5:16)
I/flutter ( 6690): #21 _runMainZoned.. (dart:ui/hooks.dart:216:25)
I/flutter ( 6690): #26 _runMainZoned. (dart:ui/hooks.dart:208:5)
I/flutter ( 6690): #27 _startIsolate. (dart:isolate-patch/isolate_patch.dart:301:19)
I/flutter ( 6690): #28 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)
I/flutter ( 6690): (elided 4 frames from package dart:async)
I/flutter ( 6690): โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
I/flutter ( 6908): โ•โ•โ•ก EXCEPTION CAUGHT BY WIDGETS LIBRARY โ•žโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
I/flutter ( 6908): The following assertion was thrown building FlareDemo(state: _FlareDemoState#1370a):
I/flutter ( 6908): MediaQuery.of() called with a context that does not contain a MediaQuery.
I/flutter ( 6908): No MediaQuery ancestor could be found starting from the context that was passed to MediaQuery.of().
I/flutter ( 6908): This can happen because you do not have a WidgetsApp or MaterialApp widget (those widgets introduce
I/flutter ( 6908): a MediaQuery), or it can happen if the context you use comes from a widget above those widgets.
I/flutter ( 6908): The context used was:
I/flutter ( 6908): Scaffold(dirty, state: ScaffoldState#86916(lifecycle state: initialized, tickers: tracking 2
I/flutter ( 6908): tickers))
I/flutter ( 6908):
I/flutter ( 6908): When the exception was thrown, this was the stack:
I/flutter ( 6908): #0 MediaQuery.of (package:flutter/src/widgets/media_query.dart:696:5)
I/flutter ( 6908): #1 ScaffoldState.didChangeDependencies (package:flutter/src/material/scaffold.dart:1842:50)
I/flutter ( 6908): #2 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4051:12)
I/flutter ( 6908): #3 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3902:5)
I/flutter ( 6908): #4 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3084:14)
I/flutter ( 6908): #5 Element.updateChild (package:flutter/src/widgets/framework.dart:2887:12)
I/flutter ( 6908): #6 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3935:16)
I/flutter ( 6908): #7 Element.rebuild (package:flutter/src/widgets/framework.dart:3721:5)
I/flutter ( 6908): #8 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3907:5)
I/flutter ( 6908): #9 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4053:11)
I/flutter ( 6908): #10 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3902:5)
I/flutter ( 6908): #11 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3084:14)
I/flutter ( 6908): #12 Element.updateChild (package:flutter/src/widgets/framework.dart:2887:12)
I/flutter ( 6908): #13 RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:939:16)
I/flutter ( 6908): #14 RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:910:5)
I/flutter ( 6908): #15 RenderObjectToWidgetAdapter.attachToRenderTree. (package:flutter/src/widgets/binding.dart:856:17)
I/flutter ( 6908): #16 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2320:19)
I/flutter ( 6908): #17 RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:855:13)
I/flutter ( 6908): #18 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding&WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:736:7)
I/flutter ( 6908): #19 runApp (package:flutter/src/widgets/binding.dart:786:7)
I/flutter ( 6908): #20 main (package:boring_star_test/main.dart:5:16)
I/flutter ( 6908): #21 _runMainZoned.. (dart:ui/hooks.dart:216:25)
I/flutter ( 6908): #26 _runMainZoned. (dart:ui/hooks.dart:208:5)
I/flutter ( 6908): #27 _startIsolate. (dart:isolate-patch/isolate_patch.dart:301:19)
I/flutter ( 6908): #28 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)
I/flutter ( 6908): (elided 4 frames from package dart:async)
I/flutter ( 6908): โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
I/flutter ( 6908): โ•โ•โ•ก EXCEPTION CAUGHT BY WIDGETS LIBRARY โ•žโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
I/flutter ( 6908): The following assertion was thrown building FlareDemo(state: _FlareDemoState#5c7fa):
I/flutter ( 6908): MediaQuery.of() called with a context that does not contain a MediaQuery.
I/flutter ( 6908): No MediaQuery ancestor could be found starting from the context that was passed to MediaQuery.of().
I/flutter ( 6908): This can happen because you do not have a WidgetsApp or MaterialApp widget (those widgets introduce
I/flutter ( 6908): a MediaQuery), or it can happen if the context you use comes from a widget above those widgets.
I/flutter ( 6908): The context used was:
I/flutter ( 6908): Scaffold(dirty, state: ScaffoldState#ab8d9(lifecycle state: initialized, tickers: tracking 2
I/flutter ( 6908): tickers))
I/flutter ( 6908):
I/flutter ( 6908): When the exception was thrown, this was the stack:
I/flutter ( 6908): #0 MediaQuery.of (package:flutter/src/widgets/media_query.dart:696:5)
I/flutter ( 6908): #1 ScaffoldState.didChangeDependencies (package:flutter/src/material/scaffold.dart:1842:50)
I/flutter ( 6908): #2 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4051:12)
I/flutter ( 6908): #3 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3902:5)
I/flutter ( 6908): #4 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3084:14)
I/flutter ( 6908): #5 Element.updateChild (package:flutter/src/widgets/framework.dart:2887:12)
I/flutter ( 6908): #6 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3935:16)
I/flutter ( 6908): #7 Element.rebuild (package:flutter/src/widgets/framework.dart:3721:5)
I/flutter ( 6908): #8 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3907:5)
I/flutter ( 6908): #9 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4053:11)
I/flutter ( 6908): #10 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3902:5)
I/flutter ( 6908): #11 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3084:14)
I/flutter ( 6908): #12 Element.updateChild (package:flutter/src/widgets/framework.dart:2887:12)
I/flutter ( 6908): #13 RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:939:16)
I/flutter ( 6908): #14 RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:910:5)
I/flutter ( 6908): #15 RenderObjectToWidgetAdapter.attachToRenderTree. (package:flutter/src/widgets/binding.dart:856:17)
I/flutter ( 6908): #16 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2320:19)
I/flutter ( 6908): #17 RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:855:13)
I/flutter ( 6908): #18 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding&WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:736:7)
I/flutter ( 6908): #19 runApp (package:flutter/src/widgets/binding.dart:786:7)
I/flutter ( 6908): #20 main (package:boring_star_test/main.dart:5:16)
I/flutter ( 6908): #21 _runMainZoned.. (dart:ui/hooks.dart:216:25)
I/flutter ( 6908): #26 _runMainZoned. (dart:ui/hooks.dart:208:5)
I/flutter ( 6908): #27 _startIsolate. (dart:isolate-patch/isolate_patch.dart:301:19)
I/flutter ( 6908): #28 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)
I/flutter ( 6908): (elided 4 frames from package dart:async)
I/flutter ( 6908): โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
I/flutter ( 6908): Width of the screen: 411.42857142857144
I/flutter ( 6908): Width of the screen: 411.42857142857144
I/flutter ( 7045): Width of the screen: 411.42857142857144
โˆš Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk...
Syncing files to device Android SDK built for x86...
I/flutter (13743): โ•โ•โ•ก EXCEPTION CAUGHT BY WIDGETS LIBRARY โ•žโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
I/flutter (13743): The following assertion was thrown building FlareDemo(state: _FlareDemoState#95d47):
I/flutter (13743): MediaQuery.of() called with a context that does not contain a MediaQuery.
I/flutter (13743): No MediaQuery ancestor could be found starting from the context that was passed to MediaQuery.of().
I/flutter (13743): This can happen because you do not have a WidgetsApp or MaterialApp widget (those widgets introduce
I/flutter (13743): a MediaQuery), or it can happen if the context you use comes from a widget above those widgets.
I/flutter (13743): The context used was:
I/flutter (13743): Scaffold
I/flutter (13743):
I/flutter (13743): The relevant error-causing widget was:
I/flutter (13743): FlareDemo file:///D:/FlutterDell/Test152-Flare2/BoringStarTest/boring_star_test/lib/main.dart:4:23
I/flutter (13743):
I/flutter (13743): When the exception was thrown, this was the stack:
I/flutter (13743): #0 MediaQuery.of (package:flutter/src/widgets/media_query.dart:798:5)
I/flutter (13743): #1 ScaffoldState.didChangeDependencies (package:flutter/src/material/scaffold.dart:1993:50)
I/flutter (13743): #2 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4376:12)
I/flutter (13743): #3 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
I/flutter (13743): #4 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
I/flutter (13743): #5 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
I/flutter (13743): #6 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4243:16)
I/flutter (13743): #7 Element.rebuild (package:flutter/src/widgets/framework.dart:3947:5)
I/flutter (13743): #8 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4206:5)
I/flutter (13743): #9 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4381:11)
I/flutter (13743): #10 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4201:5)
I/flutter (13743): #11 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3194:14)
I/flutter (13743): #12 Element.updateChild (package:flutter/src/widgets/framework.dart:2988:12)
I/flutter (13743): #13 RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:1028:16)
I/flutter (13743): #14 RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:999:5)
I/flutter (13743): #15 RenderObjectToWidgetAdapter.attachToRenderTree. (package:flutter/src/widgets/binding.dart:942:17)
I/flutter (13743): #16 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2412:19)
I/flutter (13743): #17 RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:941:13)
I/flutter (13743): #18 WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:819:7)
I/flutter (13743): #19 WidgetsBinding.scheduleAttachRootWidget. (package:flutter/src/widgets/binding.dart:804:7)
I/flutter (13743): #28 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:384:19)
I/flutter (13743): #29 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:418:5)
I/flutter (13743): #30 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:174:12)
I/flutter (13743): (elided 8 frames from package dart:async and package dart:async-patch)
I/flutter (13743):
I/flutter (13743): โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

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.