From ea348104d84d7af203b1925ca254f4a9ab5a9514 Mon Sep 17 00:00:00 2001 From: SputNikPlop <100245448+SputNikPlop@users.noreply.github.com> Date: Mon, 11 Dec 2023 11:21:27 -0800 Subject: [PATCH] fix: minor performance improvements --- .../filter_list/dynamic_input.dart | 1 - .../statistic_detail/widgets/stats_chart.dart | 8 ++--- pubspec.lock | 36 ++++--------------- 3 files changed, 10 insertions(+), 35 deletions(-) diff --git a/lib/views/dashboard/widgets/scenes/scene_content/scene_items/filter_list/dynamic_input.dart b/lib/views/dashboard/widgets/scenes/scene_content/scene_items/filter_list/dynamic_input.dart index 21221742..cc4bb36e 100644 --- a/lib/views/dashboard/widgets/scenes/scene_content/scene_items/filter_list/dynamic_input.dart +++ b/lib/views/dashboard/widgets/scenes/scene_content/scene_items/filter_list/dynamic_input.dart @@ -1,4 +1,3 @@ -import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:obs_blade/shared/general/base/adaptive_switch.dart'; import 'package:obs_blade/shared/general/base/adaptive_text_field.dart'; diff --git a/lib/views/statistics/statistic_detail/widgets/stats_chart.dart b/lib/views/statistics/statistic_detail/widgets/stats_chart.dart index 293d70e6..f0993943 100644 --- a/lib/views/statistics/statistic_detail/widgets/stats_chart.dart +++ b/lib/views/statistics/statistic_detail/widgets/stats_chart.dart @@ -129,7 +129,7 @@ class StatsChart extends StatelessWidget { // margin: 20.0, // ), // ), - gridData: FlGridData(show: false), + gridData: const FlGridData(show: false), borderData: FlBorderData( show: true, border: Border( @@ -199,12 +199,12 @@ class StatsChart extends StatelessWidget { }, ), ), - topTitles: AxisTitles( + topTitles: const AxisTitles( sideTitles: SideTitles( showTitles: false, ), ), - rightTitles: AxisTitles( + rightTitles: const AxisTitles( sideTitles: SideTitles( showTitles: false, ), @@ -250,7 +250,7 @@ class StatsChart extends StatelessWidget { isStrokeCapRound: false, isCurved: true, curveSmoothness: 0.2, - dotData: FlDotData( + dotData: const FlDotData( show: false, ), belowBarData: BarAreaData( diff --git a/pubspec.lock b/pubspec.lock index 3b81df5a..d64968c9 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -656,22 +656,6 @@ packages: url: "https://pub.dev" source: hosted version: "4.2.0" - leak_tracker: - dependency: transitive - description: - name: leak_tracker - sha256: "04be76c4a4bb50f14904e64749237e541e7c7bcf7ec0b196907322ab5d2fc739" - url: "https://pub.dev" - source: hosted - version: "9.0.16" - leak_tracker_testing: - dependency: transitive - description: - name: leak_tracker_testing - sha256: b06739349ec2477e943055aea30172c5c7000225f79dad4702e2ec0eda79a6ff - url: "https://pub.dev" - source: hosted - version: "1.0.5" lints: dependency: transitive description: @@ -700,18 +684,18 @@ packages: dependency: transitive description: name: material_color_utilities - sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" + sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" url: "https://pub.dev" source: hosted - version: "0.8.0" + version: "0.5.0" meta: dependency: transitive description: name: meta - sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 + sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e url: "https://pub.dev" source: hosted - version: "1.11.0" + version: "1.10.0" mime: dependency: transitive description: @@ -1157,14 +1141,6 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.4" - vm_service: - dependency: transitive - description: - name: vm_service - sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 - url: "https://pub.dev" - source: hosted - version: "13.0.0" wakelock_plus: dependency: "direct main" description: @@ -1193,10 +1169,10 @@ packages: dependency: transitive description: name: web - sha256: edc8a9573dd8c5a83a183dae1af2b6fd4131377404706ca4e5420474784906fa + sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152 url: "https://pub.dev" source: hosted - version: "0.4.0" + version: "0.3.0" web_socket_channel: dependency: "direct main" description: