mirror of https://github.com/flutter/pinball.git
commit
bc122a70bf
@ -0,0 +1,18 @@
|
||||
name: geometry
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- "packages/geometry/**"
|
||||
- ".github/workflows/geometry.yaml"
|
||||
|
||||
pull_request:
|
||||
paths:
|
||||
- "packages/geometry/**"
|
||||
- ".github/workflows/geometry.yaml"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
uses: VeryGoodOpenSource/very_good_workflows/.github/workflows/dart_package.yml@v1
|
||||
with:
|
||||
working_directory: packages/geometry
|
@ -0,0 +1,22 @@
|
||||
import 'package:pinball/game/game.dart';
|
||||
import 'package:pinball_theme/pinball_theme.dart';
|
||||
|
||||
/// [PinballGame] extension to reduce boilerplate in tests.
|
||||
extension PinballGameTest on PinballGame {
|
||||
/// Create [PinballGame] with default [PinballTheme].
|
||||
static PinballGame create() => PinballGame(
|
||||
theme: const PinballTheme(
|
||||
characterTheme: DashTheme(),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
/// [DebugPinballGame] extension to reduce boilerplate in tests.
|
||||
extension DebugPinballGameTest on DebugPinballGame {
|
||||
/// Create [PinballGame] with default [PinballTheme].
|
||||
static DebugPinballGame create() => DebugPinballGame(
|
||||
theme: const PinballTheme(
|
||||
characterTheme: DashTheme(),
|
||||
),
|
||||
);
|
||||
}
|
@ -1,11 +1,11 @@
|
||||
// Copyright (c) 2021, Very Good Ventures
|
||||
// https://verygood.ventures
|
||||
//
|
||||
// Copyright (c) 2021, Very Good Ventures
|
||||
// Use of this source code is governed by an MIT-style
|
||||
// license that can be found in the LICENSE file or at
|
||||
// https://opensource.org/licenses/MIT.
|
||||
|
||||
// https://verygood.ventures
|
||||
// license that can be found in the LICENSE file or at
|
||||
export 'builders.dart';
|
||||
export 'extensions.dart';
|
||||
export 'key_testers.dart';
|
||||
export 'mocks.dart';
|
||||
export 'pump_app.dart';
|
||||
|
Loading…
Reference in new issue