I get the error:
Error: Type 'File' not found. Error: 'File' isn't a type. Error: The method 'File' isn't defined for the class 'ImageOverlay'.
My code for adding map:
added import 'package:universe/universe.dart';
U.OpenStreetMap( center: [-6.170039, 106.8241], zoom: 15, // by default, CircleLayer will use style from theme primaryColor circles: U.CircleLayer( [-6.170039, 106.8241], radius: 160, ), ),
files:
lib/src/layer/overlay/image.dart
lib/src/layer/marker/layer.dart
found it missing import 'dart:io';
after adding to the files, it compiles, but just alot of exceptions
`══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
The following assertion was thrown during performResize():
RenderConstrainedOverflowBox object was given an infinite size during layout.
This probably means that it is a render object that tries to be as big as possible, but it was put
inside another render object that allows its children to pick their own size.
The nearest ancestor providing an unbounded height constraint is: RenderFlex#23456 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE:
creator: Column ← ColoredBox ← Container ← MainScreen ← Semantics ← Builder ←
RepaintBoundary-[GlobalKey#e500d] ← IgnorePointer ← AnimatedBuilder ← Transform ← ScaleTransition
← FadeTransition ← ⋯
parentData: (can use size)
constraints: BoxConstraints(w=392.7, h=802.9)
size: MISSING
direction: vertical
mainAxisAlignment: center
mainAxisSize: max
crossAxisAlignment: center
verticalDirection: down
The constraints that applied to the RenderConstrainedOverflowBox were:
BoxConstraints(0.0<=w<=392.7, 0.0<=h<=Infinity)
The exact size it was given was:
Size(392.7, Infinity)
See https://flutter.dev/docs/development/ui/layout/box-constraints for more information.
The relevant error-causing widget was:
OverflowBox
OverflowBox:file:///D:/Programmer/flutter/.pub-cache/hosted/pub.dartlang.org/universe-1.1.3-nullsafety/lib/src/map/universe.dart:212:16`
I get the error:
Error: Type 'File' not found. Error: 'File' isn't a type. Error: The method 'File' isn't defined for the class 'ImageOverlay'.My code for adding map:
added import 'package:universe/universe.dart';
U.OpenStreetMap( center: [-6.170039, 106.8241], zoom: 15, // by default, CircleLayer will use style from theme primaryColor circles: U.CircleLayer( [-6.170039, 106.8241], radius: 160, ), ),files:
lib/src/layer/overlay/image.dart
lib/src/layer/marker/layer.dart
found it missing import 'dart:io';
after adding to the files, it compiles, but just alot of exceptions
`══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
The following assertion was thrown during performResize():
RenderConstrainedOverflowBox object was given an infinite size during layout.
This probably means that it is a render object that tries to be as big as possible, but it was put
inside another render object that allows its children to pick their own size.
The nearest ancestor providing an unbounded height constraint is: RenderFlex#23456 NEEDS-LAYOUT NEEDS-PAINT NEEDS-COMPOSITING-BITS-UPDATE:
creator: Column ← ColoredBox ← Container ← MainScreen ← Semantics ← Builder ←
RepaintBoundary-[GlobalKey#e500d] ← IgnorePointer ← AnimatedBuilder ← Transform ← ScaleTransition
← FadeTransition ← ⋯
parentData: (can use size)
constraints: BoxConstraints(w=392.7, h=802.9)
size: MISSING
direction: vertical
mainAxisAlignment: center
mainAxisSize: max
crossAxisAlignment: center
verticalDirection: down
The constraints that applied to the RenderConstrainedOverflowBox were:
BoxConstraints(0.0<=w<=392.7, 0.0<=h<=Infinity)
The exact size it was given was:
Size(392.7, Infinity)
See https://flutter.dev/docs/development/ui/layout/box-constraints for more information.
The relevant error-causing widget was:
OverflowBox
OverflowBox:file:///D:/Programmer/flutter/.pub-cache/hosted/pub.dartlang.org/universe-1.1.3-nullsafety/lib/src/map/universe.dart:212:16`