-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
110 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: pop_pop_release | ||
name: pop_pop | ||
|
||
on: | ||
push: | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,27 @@ | ||
# pop_pop | ||
# <img src="docs/bubbles.png" alt="bubbles" width="30"/> pop_pop <img src="docs/bubbles.png" alt="bubbles" width="30"/> | ||
|
||
A collection of packages which provide both the building blocks and prebuilt components to create a bubble popping game in Flutter. | ||
<p align="left"> | ||
<a href="https://github.com/jamieastley/pop_pop/actions"><img src="https://github.com/jamieastley/pop_pop/workflows/pop_pop/badge.svg" alt="build"></a> | ||
<a href="https://codecov.io/gh/jamieastley/pop_pop"><img src="https://codecov.io/gh/jamieastley/pop_pop/branch/master/graph/badge.svg" alt="codecov"></a> | ||
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/license-MIT-purple.svg" alt="License: MIT"></a> | ||
</p> | ||
|
||
A collection of packages which provide both the building blocks and prebuilt components to create a bubble popping game in Flutter. | ||
|
||
| Package | Pub | | ||
| ------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------- | | ||
| [pop_pop](https://github.com/jamieastley/pop_pop/tree/master/packages/pop_pop) | [![pub package](https://img.shields.io/pub/v/pop_pop.svg)](https://pub.dev/packages/pop_pop) | | ||
|
||
--- | ||
|
||
## Examples | ||
|
||
- Coming soon™ | ||
|
||
## Feedback/Suggestions? | ||
|
||
- [Open an issue here](https://github.com/jamieastley/pop_pop/issues) | ||
|
||
## Maintainers | ||
|
||
- [@jamieastley](https://github.com/jamieastley) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions
56
packages/pop_pop/test/pop_pop_bubble_theme_model_test.dart
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_test/flutter_test.dart'; | ||
import 'package:pop_pop/pop_pop.dart'; | ||
|
||
void main() { | ||
group('PopPopBubbleThemeModel:', () { | ||
testWidgets('Golden test', (tester) async { | ||
const theme = PopPopBubbleTheme(); | ||
await tester.pumpWidget(MaterialApp( | ||
home: Scaffold( | ||
body: Row( | ||
mainAxisSize: MainAxisSize.min, | ||
children: [ | ||
Container( | ||
height: theme.size, | ||
width: theme.size, | ||
decoration: BoxDecoration(color: theme.bubbleBaseColor), | ||
), | ||
Container( | ||
height: theme.size, | ||
width: theme.size, | ||
decoration: BoxDecoration( | ||
color: theme.bubbleBodyColor, | ||
border: Border.all( | ||
width: theme.strokeWidth, | ||
color: Colors.black, | ||
), | ||
), | ||
), | ||
Container( | ||
height: theme.size, | ||
width: theme.size, | ||
decoration: BoxDecoration(color: theme.bubbleRimColor), | ||
), | ||
Container( | ||
height: theme.size, | ||
width: theme.size, | ||
decoration: BoxDecoration(color: theme.gridBackgroundColor), | ||
), | ||
Container( | ||
height: theme.size, | ||
width: theme.size, | ||
decoration: BoxDecoration(color: theme.poppedBubbleBaseColor), | ||
), | ||
], | ||
), | ||
), | ||
)); | ||
|
||
await expectLater( | ||
find.byType(Row), | ||
matchesGoldenFile('goldens/default_theme.png'), | ||
); | ||
}); | ||
}); | ||
} |
This file contains 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
This file contains 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