Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
committed Jan 13, 2025
1 parent 865e8f1 commit c3dcb62
Show file tree
Hide file tree
Showing 18 changed files with 133 additions and 127 deletions.
12 changes: 7 additions & 5 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
include: package:flutter_lints/flutter.yaml

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options

analyzer:
exclude:
- bin/
- bin/
- test
- dev
- templates
linter:
rules:
- public_member_api_docs
31 changes: 6 additions & 25 deletions example/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,9 @@
# This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.

# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml

linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at https://dart.dev/lints.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule

# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
- public_member_api_docs
analyzer:
exclude:
- test
- dev
- templates
10 changes: 7 additions & 3 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,16 @@ void main(List<String> args) {

runApp(MyApp());
}

/// UncompleteDocumentation
class MyApp extends StatelessWidget {
/// UncompleteDocumentation
MyApp({super.key});

@override
Widget build(BuildContext context) {
return route.toMaterialApp();
}

/// UncompleteDocumentation
final RouteGeneralLibFlutter route = RouteGeneralLibFlutter(
onNotFoundRoute: (context, routeData) {
return const HomePage();
Expand All @@ -59,8 +60,9 @@ class MyApp extends StatelessWidget {
},
);
}

/// UncompleteDocumentation
class HomePage extends StatefulWidget {
/// UncompleteDocumentation
const HomePage({super.key});

@override
Expand Down Expand Up @@ -127,7 +129,9 @@ class _HomePageState extends State<HomePage> {
}
}

/// UncompleteDocumentation
class SignPage extends StatefulWidget {
/// UncompleteDocumentation
const SignPage({super.key});

@override
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.0.35"
version: "0.0.39"
js:
dependency: transitive
description:
Expand Down
6 changes: 3 additions & 3 deletions lib/core/scroll_controller_auto_keep_state_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class ScrollControllerAutoKeepStateData extends ChangeNotifier {
void update() {
notifyListeners();
}

/// UncompleteDocumentation
final ValueNotifier<bool> valueNotifierIsScrolling = ValueNotifier(false);

/// listen scroll
Expand All @@ -119,14 +119,14 @@ class ScrollControllerAutoKeepStateData extends ChangeNotifier {
}
});
}

/// UncompleteDocumentation
bool isAtEdge() {
try {
return scroll_controller.position.atEdge;
} catch (e) {}
return false;
}

/// UncompleteDocumentation
Alignment alignment() {
if (isAtEdge()) {
try {
Expand Down
1 change: 1 addition & 0 deletions lib/extension/box_contstraints.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';

/// UncompleteDocumentation
extension BoxConstraintsGeneralLibFlutterExtension on BoxConstraints {
/// general
Orientation get extensionGeneralLibFlutterOrientation =>
Expand Down
Loading

0 comments on commit c3dcb62

Please sign in to comment.