This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| /// A widget that transitions between two children using a fade and slide animation. | |
| class PageTransitionSwitcher extends StatelessWidget { | |
| const PageTransitionSwitcher({ | |
| required this.child, | |
| this.isForwardMove = true, | |
| super.key, | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:bloc/bloc.dart'; | |
| class UserProfile { | |
| UserProfile({ | |
| required this.name, | |
| this.age, | |
| }); | |
| final String name; | |
| final int? age; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/rendering.dart'; | |
| import 'package:flutter/widgets.dart'; | |
| class AnimatedEdgeSlide extends SingleChildRenderObjectWidget { | |
| const AnimatedEdgeSlide({ | |
| required Widget super.child, | |
| required this.positionAnimation, | |
| super.key, | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'dart:async'; | |
| import 'package:crypto/crypto.dart'; | |
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(const MainApp()); | |
| } | |
| class MainApp extends StatefulWidget { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sealed class Shape {} | |
| class Circle extends Shape { | |
| Circle(this.radius); | |
| final double radius; | |
| } | |
| class Rectangle extends Shape { | |
| Rectangle(this.width, this.height); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {{ 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 }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(const MainApp()); | |
| } | |
| class MainApp extends StatelessWidget { | |
| const MainApp({super.key}); | |
| @override |
NewerOlder