Remove the quotes from
var long2 = double.parse('$group1');
var long2 = double.parse($group1);
You can also use
var long2 = double.tryParse($group1);
or to also accept numbers without fractions
var long2 = num.tryParse($group1)?.toDouble();
to not get an exception when the string in
$group1 can not be converted to a valid double.
- How to create number input field in Flutter?
- Flutter: Run method on Widget build complete
- Flutter- wrapping text [duplicate]
- What’s the difference between async and async* in Dart?
- Enumerate or map through a list with index and value in Dart
- How can I hide letter counter from bottom of TextField in Flutter
- How to solve Flutter CERTIFICATE_VERIFY_FAILED error while performing a POST request?
- Flutter (Dart) How to add copy to clipboard on tap to a app?
- Is there a way to load async data on InitState method?
- What is the relation between stateful and stateless widgets in Flutter?
- flutter – correct way to create a box that starts at minHeight, grows to maxHeight
- Pass a function with parameters to a VoidCallback
- Check value in array exists Flutter dart
- Flutter Navigator.pop(context) returning a black screen
- converting string to map in dart
- How to run code after showDialog is dismissed in Flutter?
- How to check which the current Route is?
- Remove underline from DropdownButtonFormField
- Horizontally scrollable cards with Snap effect in flutter
- Full width DropdownButton with adjust dropdown arrow icon in Flutter
- Make BoxDecoration image faded/transparent
- Rounded corner Card Widget with right border in flutter
- Flutter: How can I make a Random color generator Background
- How to close Scaffold’s drawer after an item tap?
- Flutter: Update Widgets On Resume?
- Flutter – How to hide/remove title of BottomNavigationBarItem
- How do I stack widgets overlapping each other in flutter
- Remove padding from ListTile between leading and title
- Flutter TextFormField hidden by keyboard
- Constructor Optional Params
- How do I pass non-string data to a named route in Flutter?
- how to access an object created in one stateful widget in another stateful widget in flutter
- Why Flutter Container does not respects its width and height constraints when it is inside other Container
- Flutter – FloatingActionButton in the center
- How to get the last n-characters in a string in Dart?
- Flutter – How does it work behind the scenes?
- How to use a “for” loop inside children of a widget?
- Flutter – How to blend an image with a gradient colour?
- Flutter: How to resolve Error importing package:http/http.dart
- Flutter persistent navigation bar with named routes?
- How to show fullscreen image in flutter
- How to load images with image.file
- Transparent PageRoute in Flutter for displaying a (semi-) transparent page
- Flutter listview with Map instead of List
- Get the name of a Dart class as a Type or String
- Flutter: adjust height of PageView/Horizontal ListView based on current child
- Flutter – Why is child widget’s initState() is not called on every rebuild of Parent widget?
- flutter ListView scroll to index not available
- Good or Bad: Declaring main method async in Dart / Flutter
- Inkwell not showing ripple when used with Container decoration