See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
class RecommendedBadge extends StatelessWidget { | |
const RecommendedBadge({super.key}); | |
@override | |
Widget build(BuildContext context) => DecoratedBox( | |
decoration: BoxDecoration( | |
color: Colors.of(context).tertiary, | |
borderRadius: BorderRadius.circular(4), | |
), | |
child: Padding( |
import 'package:flutter/material.dart'; | |
import 'package:flutter_svg/flutter_svg.dart'; | |
import 'package:popups_showcase/popup.dart'; | |
void main() { | |
runApp(const MainApp()); | |
} | |
class MainApp extends StatelessWidget { | |
const MainApp({super.key}); |
import 'package:flutter/material.dart'; | |
/// A widget that shows a popup relative to a target widget. | |
/// | |
/// The popup is declaratively shown/hidden using an [OverlayPortalController]. | |
/// | |
/// It is positioned relative to the target widget using the [followerAnchor] and [targetAnchor] properties. | |
class Popup extends StatefulWidget { | |
const Popup({ | |
required this.child, |
import 'dart:async'; | |
import 'package:crypto/crypto.dart'; | |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(const MainApp()); | |
} | |
class MainApp extends StatefulWidget { |
sealed class Shape {} | |
class Circle extends Shape { | |
Circle(this.radius); | |
final double radius; | |
} | |
class Rectangle extends Shape { | |
Rectangle(this.width, this.height); |
{{ if .Values.mysql.backup.enabled }} | |
apiVersion: batch/v1 | |
kind: CronJob | |
metadata: | |
name: {{ .Release.Name }}-mysql-backup | |
spec: | |
schedule: {{ .Values.mysql.backup.schedule | quote }} | |
jobTemplate: | |
spec: | |
ttlSecondsAfterFinished: {{ .Values.mysql.backup.ttlSecondsAfterFinished }} |
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(const MainApp()); | |
} | |
class MainApp extends StatelessWidget { | |
const MainApp({super.key}); | |
@override |
targets: | |
$default: | |
sources: | |
exclude: | |
- "**/components/**" | |
- "**/exceptions/**" | |
- "test/**" | |
builders: | |
gql_build|schema_builder: |