Skip to content

Commit

Permalink
Merge pull request #3 from saytoonz/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
saytoonz authored Feb 9, 2023
2 parents b78df01 + f9e5a99 commit 4a1075a
Show file tree
Hide file tree
Showing 8 changed files with 280 additions and 176 deletions.
29 changes: 17 additions & 12 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
## 0.0.1
* Random avatar generator.
## 0.0.8
* Dependencies upgrade
* Changed randomAvatar to RandomAvatar
* Changed randomAvatarString to RandomAvatarString

## 0.0.2
* Example added.
## 0.0.7
* Height issue fixed

## 0.0.3
* Example added to pub.
## 0.0.6
* Support this package

## 0.0.5
* Example main file updated.

## 0.0.4
* Example added to pub.

## 0.0.5
* Example main file updated.
## 0.0.3
* Example added to pub.

## 0.0.6
* Support this package
## 0.0.2
* Example added.

## 0.0.7
* Height issue fixed
## 0.0.1
* Random avatar generator.
16 changes: 4 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@ dependencies:
get avatar string
```dart
String svgCode = randomAvatarString('saytoonz');
String svgCode = RandomAvatarString('saytoonz');
```
get avatar string with transparent background

```dart
String svgCode = randomAvatarString('saytoonz', trBackground: true);
String svgCode = RandomAvatarString('saytoonz', trBackground: true);
```

get avatar svg widget

```dart
Widget svgCode = randomAvatar('saytoonz', height: 50, width: 50);
Widget svgCode = RandomAvatar('saytoonz', height: 50, width: 50);
```
get avatar svg widget with transparent background

```dart
Widget svgCode = randomAvatar('saytoonz', trBackground: true, height: 50, width: 50);
Widget svgCode = RandomAvatar('saytoonz', trBackground: true, height: 50, width: 50);
```

check the example (https://github.com/saytoonz/random_avatar/tree/main/exemple)
Expand All @@ -62,14 +62,6 @@ The string of characters is also the input for the Multiavatar package, which co
More info can be found in the `random_avatar.dart` file comments.




### Support the package (optional) ###
If you find this package useful, you can support it for free by giving it a thumbs up at the top of this page. Here's another option to support the package: <a href="https://www.buymeacoffee.com/saytoonz" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-blue.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>




### License ###


Expand Down
4 changes: 2 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ class _MyHomePageState extends State<MyHomePage> {
children: [
FloatingActionButton(
onPressed: () {
String svg = randomAvatarString(
String svg = RandomAvatarString(
DateTime.now().toIso8601String(),
trBackground: false,
);
log(svg);

_painters.add(
randomAvatar(
RandomAvatar(
DateTime.now().toIso8601String(),
height: 50,
width: 52,
Expand Down
Loading

0 comments on commit 4a1075a

Please sign in to comment.