Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/_animation/basic_hero_animation/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >-
resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >-
resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: An introductory example to staggered animations.

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/_animation/hero_animation/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Shows how to create a simple Hero transition.

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/_animation/radial_hero_animation/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >-
resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: >-
resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/_animation/staggered_pic_selection/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A more complex staggered animation example.

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/accessibility/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ publish_to: none

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
1 change: 1 addition & 0 deletions examples/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ linter:
- prefer_final_fields
- prefer_relative_imports
- prefer_single_quotes
- simple_directive_paths
- simplify_variable_pattern
- sort_unnamed_constructors_first
- specify_nonobvious_property_types
Expand Down
2 changes: 1 addition & 1 deletion examples/animation/animate0/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: 1.0.0

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/animation/animate1/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: 1.0.0

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/animation/animate2/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: 1.0.0

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/animation/animate3/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: 1.0.0

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/animation/animate4/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: 1.0.0

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/animation/animate5/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: 1.0.0

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/app-architecture/command/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Example for command cookbook recipe

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ import '../services/database_service.dart';

class UserProfileRepository {
UserProfileRepository({
required ApiClientService apiClientService,
required DatabaseService databaseService,
}) : _apiClientService = apiClientService,
_databaseService = databaseService {
required this._apiClientService,
required this._databaseService,
}) {
// #docregion Timer
Timer.periodic(const Duration(minutes: 5), (timer) => sync());
// #enddocregion Timer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import '../../domain/model/user_profile.dart';
// #docregion UserProfileViewModel
class UserProfileViewModel extends ChangeNotifier {
// #enddocregion UserProfileViewModel
UserProfileViewModel({required UserProfileRepository userProfileRepository})
: _userProfileRepository = userProfileRepository {
UserProfileViewModel({required this._userProfileRepository}) {
load();
}

Expand Down
2 changes: 1 addition & 1 deletion examples/app-architecture/offline_first/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Example for offline_first cookbook recipe

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/app-architecture/optimistic_state/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Example for optimistic_state cookbook recipe

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/app-architecture/result/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Example for result cookbook recipe

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import '../services/database_service.dart';

// #docregion TodoRepository
class TodoRepository {
TodoRepository({required DatabaseService database}) : _database = database;
TodoRepository({required this._database});
Comment thread
parlough marked this conversation as resolved.

final DatabaseService _database;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import '../../../utils/command.dart';
import '../../../utils/result.dart';

class TodoListViewModel extends ChangeNotifier {
TodoListViewModel({required TodoRepository todoRepository})
: _todoRepository = todoRepository {
TodoListViewModel({required this._todoRepository}) {
load = Command0<void>(_load)..execute();
add = Command1<void, String>(_add);
delete = Command1<void, int>(_delete);
Expand Down
2 changes: 1 addition & 1 deletion examples/app-architecture/todo_data_service/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Example for key_value_data cookbook recipe

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Sample code for cookbook.

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Sample code for cookbook.

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Sample code for cookbook.

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Sample code for cookbook.

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/cookbook/design/cupertino_sheets/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Sample code for cupertino sheets cookbook recipe.

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/cookbook/design/drawer/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Sample code for drawer cookbook recipe.

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/cookbook/design/fonts/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version: 1.0.0+1

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/cookbook/design/orientation/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Sample code for orientation cookbook recipe.

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/cookbook/design/package_fonts/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version: 1.0.0+1

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/cookbook/design/snackbars/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Sample code for snackbars cookbook recipe.

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/cookbook/design/tabs/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Sample code for tabs cookbook recipe.

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/cookbook/design/themes/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Sample code for themes cookbook recipe.

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
10 changes: 4 additions & 6 deletions examples/cookbook/effects/download_button/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,10 @@ abstract class DownloadController implements ChangeNotifier {
class SimulatedDownloadController extends DownloadController
with ChangeNotifier {
SimulatedDownloadController({
DownloadStatus downloadStatus = DownloadStatus.notDownloaded,
double progress = 0.0,
required VoidCallback onOpenDownload,
}) : _downloadStatus = downloadStatus,
_progress = progress,
_onOpenDownload = onOpenDownload;
this._downloadStatus = DownloadStatus.notDownloaded,
this._progress = 0.0,
required this._onOpenDownload,
});
Comment thread
parlough marked this conversation as resolved.

DownloadStatus _downloadStatus;
@override
Expand Down
2 changes: 1 addition & 1 deletion examples/cookbook/effects/download_button/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version: 1.0.0+1

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/cookbook/effects/drag_a_widget/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ version: 1.0.0+1

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/cookbook/effects/expandable_fab/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: 1.0.0+1

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
2 changes: 1 addition & 1 deletion examples/cookbook/effects/nested_nav/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ version: 1.0.0+1

resolution: workspace
environment:
sdk: ^3.11.0
sdk: ^3.12.0-0

dependencies:
flutter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,7 @@ class ParallaxParentData extends ContainerBoxParentData<RenderBox> {}

class RenderParallax extends RenderBox
with RenderObjectWithChildMixin<RenderBox>, RenderProxyBoxMixin {
RenderParallax({required ScrollableState scrollable})
: _scrollable = scrollable;
RenderParallax({required this._scrollable});

ScrollableState _scrollable;

Expand Down
Loading
Loading