upgraded pub things
This commit is contained in:
parent
44edca7b5e
commit
8af545b5a3
@ -148,21 +148,32 @@ class GoalGraphState extends State<GoalGraph> {
|
|||||||
preventCurveOverShooting: true,
|
preventCurveOverShooting: true,
|
||||||
spots: subjectSpots,
|
spots: subjectSpots,
|
||||||
isCurved: true,
|
isCurved: true,
|
||||||
colors: [averageColor],
|
color: averageColor,
|
||||||
barWidth: 8,
|
barWidth: 8,
|
||||||
isStrokeCapRound: true,
|
isStrokeCapRound: true,
|
||||||
dotData: FlDotData(show: false),
|
dotData: const FlDotData(show: false),
|
||||||
belowBarData: BarAreaData(
|
belowBarData: BarAreaData(
|
||||||
show: true,
|
show: true,
|
||||||
colors: [
|
gradient: LinearGradient(
|
||||||
averageColor.withOpacity(0.7),
|
begin: Alignment.topCenter,
|
||||||
averageColor.withOpacity(0.3),
|
end: Alignment.bottomCenter,
|
||||||
averageColor.withOpacity(0.2),
|
colors: [
|
||||||
averageColor.withOpacity(0.1),
|
averageColor.withOpacity(0.7),
|
||||||
],
|
averageColor.withOpacity(0.3),
|
||||||
gradientColorStops: [0.1, 0.6, 0.8, 1],
|
averageColor.withOpacity(0.2),
|
||||||
gradientFrom: const Offset(0, 0),
|
averageColor.withOpacity(0.1),
|
||||||
gradientTo: const Offset(0, 1),
|
],
|
||||||
|
stops: const [0.1, 0.6, 0.8, 1],
|
||||||
|
),
|
||||||
|
// colors: [
|
||||||
|
// averageColor.withOpacity(0.7),
|
||||||
|
// averageColor.withOpacity(0.3),
|
||||||
|
// averageColor.withOpacity(0.2),
|
||||||
|
// averageColor.withOpacity(0.1),
|
||||||
|
// ],
|
||||||
|
// gradientColorStops: [0.1, 0.6, 0.8, 1],
|
||||||
|
// gradientFrom: const Offset(0, 0),
|
||||||
|
// gradientTo: const Offset(0, 1),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (ghostData.isNotEmpty && ghostSpots.isNotEmpty)
|
if (ghostData.isNotEmpty && ghostSpots.isNotEmpty)
|
||||||
@ -170,27 +181,37 @@ class GoalGraphState extends State<GoalGraph> {
|
|||||||
preventCurveOverShooting: true,
|
preventCurveOverShooting: true,
|
||||||
spots: ghostSpots,
|
spots: ghostSpots,
|
||||||
isCurved: true,
|
isCurved: true,
|
||||||
colors: [AppColors.of(context).text],
|
color: AppColors.of(context).text,
|
||||||
barWidth: 8,
|
barWidth: 8,
|
||||||
isStrokeCapRound: true,
|
isStrokeCapRound: true,
|
||||||
dotData: FlDotData(show: false),
|
dotData: const FlDotData(show: false),
|
||||||
belowBarData: BarAreaData(
|
belowBarData: BarAreaData(
|
||||||
show: true,
|
show: true,
|
||||||
colors: [
|
gradient: LinearGradient(
|
||||||
AppColors.of(context).text.withOpacity(0.7),
|
begin: Alignment.topCenter,
|
||||||
AppColors.of(context).text.withOpacity(0.3),
|
end: Alignment.bottomCenter,
|
||||||
AppColors.of(context).text.withOpacity(0.2),
|
colors: [
|
||||||
AppColors.of(context).text.withOpacity(0.1),
|
AppColors.of(context)
|
||||||
],
|
.text
|
||||||
gradientColorStops: [0.1, 0.6, 0.8, 1],
|
.withOpacity(0.7),
|
||||||
gradientFrom: const Offset(0, 0),
|
AppColors.of(context)
|
||||||
gradientTo: const Offset(0, 1),
|
.text
|
||||||
|
.withOpacity(0.3),
|
||||||
|
AppColors.of(context)
|
||||||
|
.text
|
||||||
|
.withOpacity(0.2),
|
||||||
|
AppColors.of(context)
|
||||||
|
.text
|
||||||
|
.withOpacity(0.1),
|
||||||
|
],
|
||||||
|
stops: const [0.1, 0.6, 0.8, 1],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
minY: 1,
|
minY: 1,
|
||||||
maxY: 5,
|
maxY: 5,
|
||||||
gridData: FlGridData(
|
gridData: const FlGridData(
|
||||||
show: true,
|
show: true,
|
||||||
horizontalInterval: 1,
|
horizontalInterval: 1,
|
||||||
// checkToShowVerticalLine: (_) => false,
|
// checkToShowVerticalLine: (_) => false,
|
||||||
@ -204,8 +225,8 @@ class GoalGraphState extends State<GoalGraph> {
|
|||||||
// ),
|
// ),
|
||||||
),
|
),
|
||||||
lineTouchData: LineTouchData(
|
lineTouchData: LineTouchData(
|
||||||
touchTooltipData: LineTouchTooltipData(
|
touchTooltipData: const LineTouchTooltipData(
|
||||||
tooltipBgColor: Colors.grey.shade800,
|
// tooltipBgColor: Colors.grey.shade800,
|
||||||
fitInsideVertically: true,
|
fitInsideVertically: true,
|
||||||
fitInsideHorizontally: true,
|
fitInsideHorizontally: true,
|
||||||
),
|
),
|
||||||
|
@ -36,9 +36,9 @@ dependencies:
|
|||||||
android_dynamic_icon: ^1.0.1
|
android_dynamic_icon: ^1.0.1
|
||||||
i18n_extension: ^12.0.1
|
i18n_extension: ^12.0.1
|
||||||
http: ^1.2.0
|
http: ^1.2.0
|
||||||
fl_chart: ^0.45.1
|
fl_chart: ^0.68.0
|
||||||
flutter_dynamic_icon_plus: ^1.1.2
|
flutter_dynamic_icon_plus: ^1.1.2
|
||||||
share_plus: ^7.2.2
|
share_plus: ^9.0.0
|
||||||
path_provider: ^2.1.3
|
path_provider: ^2.1.3
|
||||||
file_picker: ^6.2.1
|
file_picker: ^6.2.1
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user