Skip to content

Commit

Permalink
docs: Update the dartdocs for FixedResolutionViewport (#3132)
Browse files Browse the repository at this point in the history
Updates the dartdocs of `FixedResolutionViewport` since it has an
accidental copy paste from another viewport.
  • Loading branch information
spydon committed Apr 18, 2024
1 parent 8a63a07 commit db4b6fd
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ import 'package:flame/camera.dart';
import 'package:flame/extensions.dart';
import 'package:flame/src/effects/provider_interfaces.dart';

/// [FixedAspectRatioViewport] is a rectangular viewport which auto-expands to
/// take as much space as possible within the canvas, while maintaining a fixed
/// aspect ratio.
/// The [FixedResolutionViewport] is a rectangular viewport which auto-expands
/// to take as much space as possible within the canvas, while maintaining a
/// fixed resolution and aspect ratio. I.e. the viewport will always show the
/// same dimensions ([resolution]) of the game world, regardless of the size of
/// the canvas.
///
/// This viewport will automatically adjust its size and position when the
/// game canvas changes in size. At the same time, manually changing the size
Expand Down

0 comments on commit db4b6fd

Please sign in to comment.