Skip to content

Commit

Permalink
feat: 💄 Add color params in SingleCard widget
Browse files Browse the repository at this point in the history
  • Loading branch information
redDwarf03 committed Jul 12, 2024
1 parent 4270ab4 commit 9f0e8dd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Changelog
=========

#### Version 1.2.6
* Add color params in SingleCard widget

#### Version 1.2.5
* Add description in RPC sign tx method
* Fix PeriodicFuture class
Expand Down
9 changes: 7 additions & 2 deletions lib/src/ui/util/components/single_card.dart
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
/// SPDX-License-Identifier: AGPL-3.0-or-later
import 'dart:ui';

import 'package:archethic_dapp_framework_flutter/archethic_dapp_framework_flutter.dart';
import 'package:archethic_dapp_framework_flutter/src/ui/themes/app_theme_base.dart';
import 'package:flutter/material.dart';

class SingleCard extends StatelessWidget {
const SingleCard({
required this.cardContent,
this.globalPadding = 20,
this.decorationColor,
this.decorationBorderColor,
super.key,
});

final Widget cardContent;
final double globalPadding;
final Color? decorationColor;
final Color? decorationBorderColor;

@override
Widget build(BuildContext context) {
Expand All @@ -22,9 +27,9 @@ class SingleCard extends StatelessWidget {
filter: ImageFilter.blur(sigmaX: 10, sigmaY: 10),
child: DecoratedBox(
decoration: BoxDecoration(
color: AppThemeBase.sheetBackground,
color: decorationColor ?? AppThemeBase.sheetBackground,
border: Border.all(
color: AppThemeBase.sheetBorder,
color: decorationBorderColor ?? AppThemeBase.sheetBorder,
),
borderRadius: BorderRadius.circular(20),
),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: archethic_dapp_framework_flutter
description: An internal framework for archethic flutter development
homepage: https://github.com/archethic-foundation/archethic-dapp-framework-flutter

version: 1.2.5
version: 1.2.6

environment:
sdk: ">=3.3.0 <4.0.0"
Expand Down

0 comments on commit 9f0e8dd

Please sign in to comment.