Skip to content

feat: adapt for halloween #55

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design_system/assets/images/2.0x/closed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design_system/assets/images/2.0x/love.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design_system/assets/images/2.0x/pointingUp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design_system/assets/images/2.0x/thumbsDown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design_system/assets/images/2.0x/thumbsUp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design_system/assets/images/2.0x/victory.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design_system/assets/images/3.0x/closed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design_system/assets/images/3.0x/love.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design_system/assets/images/3.0x/pointingUp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design_system/assets/images/3.0x/thumbsDown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design_system/assets/images/3.0x/thumbsUp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design_system/assets/images/3.0x/victory.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design_system/assets/images/4.0x/closed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design_system/assets/images/4.0x/love.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design_system/assets/images/4.0x/pointingUp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design_system/assets/images/4.0x/thumbsUp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design_system/assets/images/4.0x/victory.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added design_system/assets/images/closed.png
Binary file added design_system/assets/images/love.png
Binary file added design_system/assets/images/pointingUp.png
Binary file added design_system/assets/images/thumbsDown.png
Binary file added design_system/assets/images/thumbsUp.png
Binary file added design_system/assets/images/victory.png
1 change: 1 addition & 0 deletions design_system/assets/lottie/spider.json

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions design_system/design_system_gallery/pubspec.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

124 changes: 119 additions & 5 deletions design_system/lib/gen/assets.gen.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion design_system/lib/widgets/app_scaffold.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ class AppScaffold extends StatelessWidget {
final Widget child;
final bool? showBackButton;
final bool resizeToAvoidBottomInset;
final bool showSpiderLottie;

const AppScaffold({
required this.child,
this.showBackButton,
this.resizeToAvoidBottomInset = false,
this.showSpiderLottie = false,
super.key,
});

Expand All @@ -23,7 +25,7 @@ class AppScaffold extends StatelessWidget {
resizeToAvoidBottomInset: resizeToAvoidBottomInset,
body: Stack(
children: [
const ScreenBackgroundContainer(),
ScreenBackgroundContainer(showSpiderLottie: showSpiderLottie),
SafeArea(
child: Container(
width: 1.sw,
Expand Down
23 changes: 21 additions & 2 deletions design_system/lib/widgets/background.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
import 'package:design_system/extensions/context_extensions.dart';
import 'package:design_system/gen/assets.gen.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import 'package:design_system/gen/assets.gen.dart';

class ScreenBackgroundContainer extends StatelessWidget {
const ScreenBackgroundContainer({super.key});
final bool showSpiderLottie;

const ScreenBackgroundContainer({super.key, this.showSpiderLottie = false});

@override
Widget build(BuildContext context) => Container(
Expand All @@ -23,6 +26,22 @@ class ScreenBackgroundContainer extends StatelessWidget {
right: 0,
child: Assets.images.backgroundRedProp.image(),
),
Positioned(
bottom: 0,
left: 0,
child: Assets.images.backgroundDownSpiderweb.image(),
),
Positioned(
top: 0,
right: 0,
child: Assets.images.backgroundTopSpiderweb.image(),
),
if (showSpiderLottie)
Positioned(
top: 0,
right: 0,
child: Assets.lottie.spider.lottie(),
),
],
),
);
Expand Down
Loading
Loading