Skip to content

Instantly share code, notes, and snippets.

View bawantha's full-sized avatar
🎯
Focusing

Bawantha Mihiran Rajapaksha bawantha

🎯
Focusing
View GitHub Profile
Only the original thread that created a view hierarchy can touch its views
@bawantha
bawantha / chart_data_process.dart
Created June 15, 2022 05:49
chart_data_process
/// WIdget input data
/// ==================
/// List of [KirkseyDeviceActivationRecord]
List<KirkseyDeviceActivation> deviceActivations = [];
/// unitId
/// set as 7 for demo
int unitId = 7;
/// Date of selected chart
import 'package:fl_chart/fl_chart.dart';
class CustomBarChart extends StatefulWidget {
const CustomBarChart({
Key key,
this.width,
this.height,
this.values,
this.path1,
this.path2,