Skip to content

Instantly share code, notes, and snippets.

View TahaTesser's full-sized avatar

Taha Tesser TahaTesser

View GitHub Profile
import 'package:jaspr/jaspr.dart';
import 'package:signals/signals_core.dart';
import 'watch.dart';
import 'embedded_counter.dart';
class Counter extends StatefulComponent {
const Counter({super.key});
@override
@dumazy
dumazy / dart-fix-all-separately.sh
Created June 5, 2024 09:56
Apply all 'dart fix' separately
#!/bin/bash
# This script applies Dart fixes to a project and commits the changes for each fix separately.
# It uses the `dart fix --dry-run` command to find the fixes that can be applied.
# For each fix, it applies the fix and commits the changes with a message indicating the fix code.
checkDart() {
if ! command -v dart &> /dev/null
then
echo "Dart could not be found. Please install Dart first."