Skip to content

Commit

Permalink
Move files to src and comply with the dart package layout convention
Browse files Browse the repository at this point in the history
  • Loading branch information
renancaraujo committed Jan 19, 2021
1 parent 85c6a11 commit 86f0f6c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 31 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
- Updated the `widgets.md` documentation
- Removing methods `initialDimensions` and `removeGestureRecognizer` to avoid confusion
- Adding standard for `SpriteComponent` and `SpriteAnimationComponent` constructors
- move files to comply with the dart package layout convention
- Move files to comply with the dart package layout convention

## 1.0.0-rc5
- Option for overlays to be already visible on the GameWidget
Expand Down
4 changes: 2 additions & 2 deletions doc/examples/particles/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import 'dart:async';
import 'dart:math';
import 'dart:ui';

import 'package:flame/components.dart';
import 'package:flame/components.dart' hide Timer;
import 'package:flame/flame.dart';
import 'package:flame/timer.dart' as flame_timer;
import 'package:flame/game.dart';
import 'package:flame/particles.dart';
import 'package:flame/spritesheet.dart';
import 'package:flame/timer.dart' as flame_timer;
import 'package:flutter/material.dart' hide Image;

void main() async {
Expand Down
3 changes: 3 additions & 0 deletions lib/components.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ export 'src/components/sprite_component.dart';
export 'src/components/text_box_component.dart';
export 'src/components/text_component.dart';

export 'src/timer.dart';
export 'joystick.dart';

export 'src/components/mixins/draggable.dart';
export 'src/components/mixins/has_game_ref.dart';
export 'src/components/mixins/single_child_particle.dart';
Expand Down
27 changes: 0 additions & 27 deletions lib/src/profiler.dart

This file was deleted.

2 changes: 1 addition & 1 deletion lib/timer.dart
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export 'src/timer.dart';
export 'src/timer.dart';

0 comments on commit 86f0f6c

Please sign in to comment.