diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 79a076ad9..360d1afd6 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -18,10 +18,10 @@ jobs: runs-on: "ubuntu-latest" steps: - name: 📚 Git Checkout - uses: actions/checkout@v4 + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 - name: 🐦 Setup Flutter - uses: subosito/flutter-action@v2 + uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa with: flutter-version: "3.10.2" channel: stable @@ -29,7 +29,7 @@ jobs: cache-key: flutter-:os:-:channel:-:version:-:arch:-:hash:-${{ hashFiles('**/pubspec.lock') }} - name: 🤫 Set SSH Key - uses: webfactory/ssh-agent@v0.8.0 + uses: webfactory/ssh-agent@fd34b8dee206fe74b288a5e61bc95fba2f1911eb with: ssh-private-key: ${{secrets.SSH_PRIVATE_KEY}} diff --git a/lib/src/add_ons/indicators_ui/macd_indicator/macd_indicator_item.dart b/lib/src/add_ons/indicators_ui/macd_indicator/macd_indicator_item.dart index 737c7ae9c..033e80043 100644 --- a/lib/src/add_ons/indicators_ui/macd_indicator/macd_indicator_item.dart +++ b/lib/src/add_ons/indicators_ui/macd_indicator/macd_indicator_item.dart @@ -136,14 +136,11 @@ class MACDIndicatorItemState extends IndicatorItemState { // TODO(Ramin): Add generic type to avoid casting. int get _currentSlowMAPeriod => - _slowMAPeriod ?? - (widget.config as MACDIndicatorConfig).slowMAPeriod; + _slowMAPeriod ?? (widget.config as MACDIndicatorConfig).slowMAPeriod; int get _currentFastMAPeriod => - _fastMAPeriod ?? - (widget.config as MACDIndicatorConfig).fastMAPeriod; + _fastMAPeriod ?? (widget.config as MACDIndicatorConfig).fastMAPeriod; int get _currentSignalPeriod => - _signalPeriod ?? - (widget.config as MACDIndicatorConfig).signalPeriod; + _signalPeriod ?? (widget.config as MACDIndicatorConfig).signalPeriod; } diff --git a/lib/src/add_ons/indicators_ui/roc/roc_indicator_item.dart b/lib/src/add_ons/indicators_ui/roc/roc_indicator_item.dart index f6d02611e..4e52e4467 100644 --- a/lib/src/add_ons/indicators_ui/roc/roc_indicator_item.dart +++ b/lib/src/add_ons/indicators_ui/roc/roc_indicator_item.dart @@ -15,7 +15,7 @@ class ROCIndicatorItem extends IndicatorItem { required UpdateIndicator updateIndicator, required VoidCallback deleteIndicator, Key? key, - ROCIndicatorConfig config=const ROCIndicatorConfig(), + ROCIndicatorConfig config = const ROCIndicatorConfig(), }) : super( key: key, title: 'ROC', diff --git a/lib/src/add_ons/indicators_ui/widgets/field_widget.dart b/lib/src/add_ons/indicators_ui/widgets/field_widget.dart index bedae2dec..141ff4bea 100644 --- a/lib/src/add_ons/indicators_ui/widgets/field_widget.dart +++ b/lib/src/add_ons/indicators_ui/widgets/field_widget.dart @@ -21,18 +21,18 @@ class FieldWidget extends StatelessWidget { @override Widget build(BuildContext context) => Row( - children: [ - Text(label, style: const TextStyle(fontSize: 10)), - const SizedBox(width: 4), - SizedBox( - width: 20, - child: TextFormField( - style: const TextStyle(fontSize: 10), - initialValue: initialValue, - keyboardType: TextInputType.number, - onChanged: onValueChanged, - ), - ), - ], - ); + children: [ + Text(label, style: const TextStyle(fontSize: 10)), + const SizedBox(width: 4), + SizedBox( + width: 20, + child: TextFormField( + style: const TextStyle(fontSize: 10), + initialValue: initialValue, + keyboardType: TextInputType.number, + onChanged: onValueChanged, + ), + ), + ], + ); } diff --git a/lib/src/deriv_chart/chart/data_visualization/chart_series/indicators_series/models/alligator_options.dart b/lib/src/deriv_chart/chart/data_visualization/chart_series/indicators_series/models/alligator_options.dart index 38258387f..7354af9c5 100644 --- a/lib/src/deriv_chart/chart/data_visualization/chart_series/indicators_series/models/alligator_options.dart +++ b/lib/src/deriv_chart/chart/data_visualization/chart_series/indicators_series/models/alligator_options.dart @@ -7,8 +7,8 @@ class AlligatorOptions extends IndicatorOptions { this.jawPeriod = 13, this.teethPeriod = 8, this.lipsPeriod = 5, - this.showLines=true, - this.showFractal=false, + this.showLines = true, + this.showFractal = false, }) : super(); /// Smoothing period for jaw series diff --git a/lib/src/deriv_chart/chart/data_visualization/chart_series/indicators_series/models/ma_env_options.dart b/lib/src/deriv_chart/chart/data_visualization/chart_series/indicators_series/models/ma_env_options.dart index 98a89450a..182c8d3f2 100644 --- a/lib/src/deriv_chart/chart/data_visualization/chart_series/indicators_series/models/ma_env_options.dart +++ b/lib/src/deriv_chart/chart/data_visualization/chart_series/indicators_series/models/ma_env_options.dart @@ -20,5 +20,7 @@ class MAEnvOptions extends MAOptions { final ShiftType shiftType; @override - List get props => super.props..add(shift)..add(shiftType); + List get props => super.props + ..add(shift) + ..add(shiftType); } diff --git a/lib/src/theme/chart_default_theme.dart b/lib/src/theme/chart_default_theme.dart index 782434061..41a5d7893 100644 --- a/lib/src/theme/chart_default_theme.dart +++ b/lib/src/theme/chart_default_theme.dart @@ -116,8 +116,7 @@ abstract class ChartDefaultTheme implements ChartTheme { ); @override - EntrySpotStyle get entrySpotStyle => - const EntrySpotStyle(); + EntrySpotStyle get entrySpotStyle => const EntrySpotStyle(); @override HorizontalBarrierStyle get horizontalBarrierStyle => HorizontalBarrierStyle( diff --git a/test/benchmark/benchmark.dart b/test/benchmark/benchmark.dart index e69de29bb..8b1378917 100644 --- a/test/benchmark/benchmark.dart +++ b/test/benchmark/benchmark.dart @@ -0,0 +1 @@ +