Skip to content

Commit

Permalink
Merge pull request #6 from adityathakurxd/fixes
Browse files Browse the repository at this point in the history
Updated package version number and changelog
  • Loading branch information
adityathakurxd authored Mar 20, 2023
2 parents 9d58846 + 08b8a25 commit 6315019
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 16 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,11 @@ Added onTap to specify a function.

## 0.0.4

Fixed onTap to specify a callback.
Fixed onTap to specify a callback.

## 0.0.5

Fixed an issue with onTap causing null value.
`title` is now a required property.
The `title` is now centred if a `subtitle` is not provided.
An example app is added to check implementation.
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.0.4"
version: "0.0.5"
flutter:
dependency: "direct main"
description: flutter
Expand Down
26 changes: 13 additions & 13 deletions lib/src/fancy_containers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:fancy_containers/src/utils/fancy_containers_typedef.dart';
import 'package:flutter/material.dart';

class FancyContainer extends StatefulWidget {
FancyContainer({
const FancyContainer({
Key? key,
this.height = 120.0,
this.width,
Expand All @@ -18,18 +18,18 @@ class FancyContainer extends StatefulWidget {
this.subtitleStyle,
}) : super(key: key);

double? width;
double height = 120;
Color? color1;
Color? color2;
String title;
Color? textColor;
String? subtitle;
Color? subtitleColor;
FancyContainersCallback? onTap;
EdgeInsetsGeometry? padding;
TextStyle? titleStyle;
TextStyle? subtitleStyle;
final double? width;
final double height;
final Color? color1;
final Color? color2;
final String title;
final Color? textColor;
final String? subtitle;
final Color? subtitleColor;
final FancyContainersCallback? onTap;
final EdgeInsetsGeometry? padding;
final TextStyle? titleStyle;
final TextStyle? subtitleStyle;

@override
_FancyContainerState createState() => _FancyContainerState();
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: fancy_containers
description: Fancy Containers Flutter Package
version: 0.0.4
version: 0.0.5
homepage: https://github.com/adityathakurxd/fancy_containers

environment:
Expand Down

0 comments on commit 6315019

Please sign in to comment.