You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, it seems that when I send Double variables the chart is not compiling well, is there something that I'm missing or it is kust that the library only receive int values?
// Automatic FlutterFlow imports
import '../../backend/backend.dart';
import '../../flutter_flow/flutter_flow_theme.dart';
import '../../flutter_flow/flutter_flow_util.dart';
import '../widgets/index.dart'; // Imports other custom widgets
import '../../flutter_flow/custom_functions.dart'; // Imports custom functions
import 'package:flutter/material.dart';
// Begin custom widget code
// DO NOT REMOVE OR MODIFY THE CODE ABOVE!
Hi, it seems that when I send Double variables the chart is not compiling well, is there something that I'm missing or it is kust that the library only receive int values?
// Automatic FlutterFlow imports
import '../../backend/backend.dart';
import '../../flutter_flow/flutter_flow_theme.dart';
import '../../flutter_flow/flutter_flow_util.dart';
import '../widgets/index.dart'; // Imports other custom widgets
import '../../flutter_flow/custom_functions.dart'; // Imports custom functions
import 'package:flutter/material.dart';
// Begin custom widget code
// DO NOT REMOVE OR MODIFY THE CODE ABOVE!
import 'package:flutter_radar_chart/flutter_radar_chart.dart';
class Radar5Eses extends StatefulWidget {
const Radar5Eses({
Key? key,
this.width,
this.height,
required this.seiri,
required this.seiton,
required this.seiso,
required this.seiketsu,
required this.shitsuke,
}) : super(key: key);
final double? width;
final double? height;
final double seiri;
final double seiton;
final double seiso;
final double seiketsu;
final double shitsuke;
@OverRide
_Radar5EsesState createState() => _Radar5EsesState();
}
class _Radar5EsesState extends State {
bool darkMode = false;
bool useSides = false;
double numberOfFeatures = 5;
@OverRide
Widget build(BuildContext context) {
const ticks = [5, 4, 3, 2, 1];
var features = ["SEIRI", "SEITON", "SEISO", "SEIKETSU", "SHITSUKE"];
var data = [
[
widget.seiri.round(),
widget.seiton.round(),
widget.seiso.round(),
widget.seiketsu.round(),
widget.shitsuke.round()
]
];
}
}
The text was updated successfully, but these errors were encountered: