[Setup] Added build.yaml and check.yaml (#1)

Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
PartyDonut 2024-09-21 11:59:28 +02:00 committed by GitHub
parent 226686eb18
commit 7b3e733b76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
112 changed files with 3926 additions and 3784 deletions

View file

@ -2,7 +2,7 @@ import 'package:collection/collection.dart';
import 'package:flutter/material.dart';
extension ListExtensions on List<Widget> {
addInBetween(Widget widget) {
List<Widget> addInBetween(Widget widget) {
return mapIndexed(
(index, element) {
if (element != last) {
@ -14,7 +14,7 @@ extension ListExtensions on List<Widget> {
).expand((element) => element).toList();
}
addPadding(EdgeInsets padding) {
List<Widget> addPadding(EdgeInsets padding) {
return map((e) {
if (e is Expanded || e is Spacer || e is Flexible) return e;
return Padding(
@ -29,7 +29,7 @@ extension ListExtensions on List<Widget> {
}).toList();
}
addSize({double? width, double? height}) {
List<Widget> addSize({double? width, double? height}) {
return map((e) {
if (e is Expanded || e is Spacer || e is Flexible) return e;
return SizedBox(