-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from thekorn/controller_event_stream
feat: Controller event stream
- Loading branch information
Showing
18 changed files
with
509 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[*.{kt,kts}] | ||
end_of_line = lf | ||
ij_kotlin_allow_trailing_comma = false | ||
ij_kotlin_allow_trailing_comma_on_call_site = false | ||
ij_kotlin_imports_layout = * | ||
ij_kotlin_packages_to_use_import_on_demand = java.util.*,kotlinx.android.synthetic.** | ||
indent_size = 4 | ||
indent_style = space | ||
insert_final_newline = true | ||
ktlint_chain_method_rule_force_multiline_when_chain_operator_count_greater_or_equal_than = unset | ||
ktlint_class_signature_rule_force_multiline_when_parameter_count_greater_or_equal_than = unset | ||
ktlint_code_style = android_studio | ||
ktlint_function_naming_ignore_when_annotated_with = [unset] | ||
ktlint_function_signature_body_expression_wrapping = default | ||
ktlint_function_signature_rule_force_multiline_when_parameter_count_greater_or_equal_than = unset | ||
ktlint_ignore_back_ticked_identifier = false | ||
max_line_length = 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ Packages: | |
- dart | ||
- flutter | ||
- swiftformat | ||
- ktlint | ||
|
||
```bash | ||
dart pub global activate melos | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
"bunte", | ||
"demoads", | ||
"flutterfire", | ||
"ktlint", | ||
"swiftformat", | ||
"swiftversion", | ||
"thekorn", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import 'package:flutter/widgets.dart'; | ||
import 'package:xandr/xandr.dart'; | ||
|
||
/// A builder class for Xandr that extends [FutureBuilder]. | ||
/// | ||
/// This class is responsible for building Xandr and handling the asynchronous | ||
/// result of type [bool] which is returned by the [XandrController.init] | ||
/// method and indicates success or failure of the initialization. | ||
class XandrBuilder extends FutureBuilder<bool> { | ||
/// A builder class for creating Xandr objects. | ||
/// | ||
/// Use this class to conveniently build Xandr objects with the desired | ||
/// parameters. | ||
XandrBuilder({ | ||
required XandrController controller, | ||
required super.builder, | ||
required int memberId, | ||
super.key, | ||
}) : super(future: controller.init(memberId)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.