Skip to content

Commit

Permalink
Merge pull request #41 from bahricanyesil/develop
Browse files Browse the repository at this point in the history
V1.1.0 is ready
  • Loading branch information
bahricanyesil authored Jan 26, 2022
2 parents 66745a0 + 6e35a41 commit 47ea559
Show file tree
Hide file tree
Showing 51 changed files with 569 additions and 242 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# Versions
## [1.1.0] - 26.01.2022

* Completed all of the documentation.
* Fixed material dependency of the simple dialog option widget (InkWell).
* Changed the logic behind the theming and responsiveness.
* Layout builder and isLandscape variable used just for web.
* Focus changes on the input fields.

## [1.0.0] - 25.11.2021

Expand Down
19 changes: 9 additions & 10 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ linter:
- avoid_double_and_int_checks
- avoid_dynamic_calls
- avoid_empty_else
- avoid_equals_and_hash_code_on_mutable_classes
# - avoid_equals_and_hash_code_on_mutable_classes
- avoid_escaping_inner_quotes
- avoid_field_initializers_in_const_classes
- avoid_function_literals_in_foreach_calls
Expand All @@ -42,7 +42,6 @@ linter:
- avoid_slow_async_io
- avoid_type_to_string
- avoid_types_as_parameter_names
# - avoid_types_on_closure_parameters
- avoid_unnecessary_containers
- avoid_unused_constructor_parameters
- avoid_void_async
Expand All @@ -66,14 +65,14 @@ linter:
- empty_constructor_bodies
- empty_statements
- exhaustive_cases
# - file_names
- file_names
- flutter_style_todos
- hash_and_equals
- implementation_imports
- invariant_booleans
- iterable_contains_unrelated_type
- join_return_with_assignment
- leading_newlines_in_multiline_strings
# - leading_newlines_in_multiline_strings
- library_names
- library_prefixes
- lines_longer_than_80_chars
Expand Down Expand Up @@ -126,24 +125,24 @@ linter:
- prefer_is_not_empty
- prefer_is_not_operator
- prefer_iterable_whereType
# - prefer_mixin
- prefer_mixin
- prefer_null_aware_operators
- prefer_relative_imports
- prefer_spread_collections
- prefer_typing_uninitialized_variables
- prefer_void_to_null
- provide_deprecation_message
# - public_member_api_docs
- public_member_api_docs
- recursive_getters
- sized_box_for_whitespace
- slash_for_doc_comments
- sort_child_properties_last
# - sort_constructors_first
- sort_constructors_first
- sort_unnamed_constructors_first
- test_types_in_equals
- throw_in_finally
- tighten_type_of_initializing_formals
# - type_annotate_public_apis
- type_annotate_public_apis
- type_init_formals
- unawaited_futures
- unnecessary_await_in_return
Expand All @@ -165,7 +164,7 @@ linter:
- unnecessary_this
- unrelated_type_equality_checks
- unsafe_html
# - use_build_context_synchronously
- use_build_context_synchronously
- use_full_hex_values_for_flutter_colors
- use_function_type_syntax_for_parameters
- use_if_null_to_convert_nulls_to_bools
Expand All @@ -179,4 +178,4 @@ linter:
- use_string_buffers
- use_to_and_as_if_applicable
- valid_regexps
- void_checks
- void_checks
4 changes: 2 additions & 2 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 46;
objectVersion = 50;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -127,7 +127,7 @@
97C146E61CF9000F007C117D /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 1020;
LastUpgradeCheck = 1300;
ORGANIZATIONNAME = "";
TargetAttributes = {
97C146ED1CF9000F007C117D = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1020"
LastUpgradeVersion = "1300"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
2 changes: 2 additions & 0 deletions example/lib/dialog_builders.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ class DialogBuilder {
/// Builds various dialogs with different methods.
/// * e.g. [showLoadingDialog], [showResultDialog]
const DialogBuilder(this.context);

/// Takes [context] as parameter.
final BuildContext context;

/// Example loading dialog
Expand Down
31 changes: 19 additions & 12 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ import 'package:animated_login/animated_login.dart';
import 'dialog_builders.dart';
import 'login_functions.dart';

/// Main function.
void main() {
runApp(const MyApp());
}

/// Example app widget.
class MyApp extends StatelessWidget {
/// Main app widget.
const MyApp({Key? key}) : super(key: key);
Expand All @@ -27,20 +29,21 @@ class MyApp extends StatelessWidget {
);
}

static const Map<int, Color> color = {
50: Color.fromRGBO(4, 131, 184, .1),
100: Color.fromRGBO(4, 131, 184, .2),
200: Color.fromRGBO(4, 131, 184, .3),
300: Color.fromRGBO(4, 131, 184, .4),
400: Color.fromRGBO(4, 131, 184, .5),
500: Color.fromRGBO(4, 131, 184, .6),
600: Color.fromRGBO(4, 131, 184, .7),
700: Color.fromRGBO(4, 131, 184, .8),
800: Color.fromRGBO(4, 131, 184, .9),
900: Color.fromRGBO(4, 131, 184, 1),
};
// static const Map<int, Color> color = {
// 50: Color.fromRGBO(4, 131, 184, .1),
// 100: Color.fromRGBO(4, 131, 184, .2),
// 200: Color.fromRGBO(4, 131, 184, .3),
// 300: Color.fromRGBO(4, 131, 184, .4),
// 400: Color.fromRGBO(4, 131, 184, .5),
// 500: Color.fromRGBO(4, 131, 184, .6),
// 600: Color.fromRGBO(4, 131, 184, .7),
// 700: Color.fromRGBO(4, 131, 184, .8),
// 800: Color.fromRGBO(4, 131, 184, .9),
// 900: Color.fromRGBO(4, 131, 184, 1),
// };
}

/// Example login screen
class LoginScreen extends StatefulWidget {
/// Simulates the multilanguage, you will implement your own logic.
/// According to the current language, you can display a text message
Expand All @@ -52,7 +55,10 @@ class LoginScreen extends StatefulWidget {
}

class _LoginScreenState extends State<LoginScreen> {
/// Example selected language, default is English.
LanguageOption language = _languageOptions[1];

/// Current auth mode, default is [AuthMode.login].
AuthMode currentMode = AuthMode.login;

@override
Expand Down Expand Up @@ -154,6 +160,7 @@ class _LoginScreenState extends State<LoginScreen> {
];
}

/// Example forgot password screen
class ForgotPasswordScreen extends StatelessWidget {
/// Example forgot password screen that user is navigated to
/// after clicked on "Forgot Password?" text.
Expand Down
14 changes: 7 additions & 7 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ packages:
path: ".."
relative: true
source: path
version: "1.0.0"
version: "1.1.0"
animations:
dependency: transitive
description:
Expand All @@ -21,7 +21,7 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.8.1"
version: "2.8.2"
boolean_selector:
dependency: transitive
description:
Expand All @@ -35,7 +35,7 @@ packages:
name: characters
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "1.2.0"
charcode:
dependency: transitive
description:
Expand Down Expand Up @@ -101,7 +101,7 @@ packages:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.10"
version: "0.12.11"
meta:
dependency: transitive
description:
Expand Down Expand Up @@ -176,7 +176,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.2"
version: "0.4.3"
typed_data:
dependency: transitive
description:
Expand All @@ -190,7 +190,7 @@ packages:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
version: "2.1.1"
sdks:
dart: ">=2.12.0 <3.0.0"
dart: ">=2.14.0 <3.0.0"
flutter: ">=1.17.0"
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dev_dependencies:
flutter_test:
sdk: flutter

flutter_lints: ^1.0.0
flutter_lints: ^1.0.4

flutter:
uses-material-design: true
Expand Down
Loading

0 comments on commit 47ea559

Please sign in to comment.