Skip to content

Commit 071a649

Browse files
authored
Merge pull request #27 from FlutterFlow/souvik/upgrade_support_libraries
Upgrade to version 0.3.0
2 parents 6c1790e + 0e1d4c3 commit 071a649

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+4375
-1921
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.3.0
2+
3+
- Add support for new UI widgets available in current FlutterFlow release
4+
- Update utility functions to support new FlutterFlow code generation
5+
- Update dependencies
6+
17
## 0.2.0
28

39
**Breaking changes**

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
BSD 3-Clause License
22

3-
Copyright (c) 2022, FlutterFlow
3+
Copyright (c) 2024, FlutterFlow
44
All rights reserved.
55

66
Redistribution and use in source and binary forms, with or without

README.md

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# flutterflow_ui
1+
# FlutterFlow UI
22

3-
`flutterflow_ui` simplifies the process of adding FlutterFlow-generated UI code to your Flutter projects. It streamlines integration, saving you time and effort in the UI development for your Flutter app.
3+
`flutterflow_ui` simplifies the process of adding FlutterFlow generated UI code to your Flutter projects. It streamlines integration, saving you time and effort in the UI development for your Flutter app.
44

55
## Generate code in your FlutterFlow project
66

@@ -25,25 +25,25 @@ dependencies:
2525
```
2626
Remember to run `flutter pub get`
2727

28-
## Replace the flutter_flow dependencies with the package import
28+
## Replace the `flutter_flow` dependencies with the package import
2929

3030
In your imports, you will see a bunch of `flutter_flow/flutter_flow...` imports that are usually present in a FlutterFlow project but with this package you can resolve these errors.
3131

32-
Remove such imports
32+
Remove such imports:
3333
```dart
3434
import '/flutter_flow/flutter_flow_animations.dart';
3535
import '/flutter_flow/flutter_flow_icon_button.dart';
3636
import '/flutter_flow/flutter_flow_theme.dart';
3737
import '/flutter_flow/flutter_flow_util.dart';
3838
```
3939

40-
And replace it with the package import.
40+
And replace it with the package import:
4141

4242
```dart
4343
import 'package:flutterflow_ui/flutterflow_ui.dart';
4444
```
4545

46-
## Cleaning Up Unnecessary Code
46+
## Cleaning up unnecessary code
4747

4848
In the beginning of the build method, you might encounter the line `context.watch<FFAppState>();`. This line is beneficial in a FlutterFlow project, but in your Flutter project, you might have a different method for managing global constants and variables. If that's the case, feel free to remove this line of code.
4949

@@ -72,12 +72,30 @@ Alternatively, you can follow similar steps as mentioned above, but click on "Vi
7272
## Supports the following FlutterFlow widgets
7373

7474
* Layout Elements supported by Material/Cupertino package
75+
* Ad Banner
76+
* Audio Player
7577
* Calendar
7678
* Charts
79+
* Checkbox Group
80+
* Choice Chips
81+
* Counter Button
7782
* Credit Card
83+
* Data Table
84+
* Drop Down
85+
* Expandable Image & Circle Image
86+
* Google Map
87+
* Icon Button
88+
* Language Selector
7889
* Media Display
90+
* Mux Broadcast
91+
* Radio Button
7992
* Rive
93+
* Static Map
8094
* Swipeable Stack
95+
* Timer
96+
* Toggle Icon
97+
* Tab Bar
98+
* Web View
8199

82-
## Documentation & More Usages
83-
You can check out our [documentation](https://docs.flutterflow.io/flutter/export-flutterflow-ui-code-to-your-flutter-project) for more examples
100+
## Documentation & more usages
101+
You can check out our [documentation](https://docs.flutterflow.io/flutter/export-flutterflow-ui-code-to-your-flutter-project) for more examples.

analysis_options.yaml

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
include: package:flutter_lints/flutter.yaml
2+
analyzer:
3+
errors:
4+
missing_required_param: error
5+
missing_return: warning
6+
todo: ignore
7+
exclude:
8+
- "bin/cache/**"
9+
linter:
10+
rules:
11+
always_declare_return_types: true
12+
always_put_control_body_on_new_line: true
13+
annotate_overrides: true
14+
avoid_bool_literals_in_conditional_expressions: true
15+
avoid_classes_with_only_static_members: true
16+
avoid_empty_else: true
17+
avoid_field_initializers_in_const_classes: true
18+
avoid_function_literals_in_foreach_calls: false
19+
avoid_init_to_null: true
20+
avoid_null_checks_in_equality_operators: true
21+
avoid_relative_lib_imports: true
22+
avoid_renaming_method_parameters: true
23+
avoid_return_types_on_setters: true
24+
avoid_returning_null_for_void: true
25+
avoid_shadowing_type_parameters: true
26+
avoid_slow_async_io: true
27+
avoid_types_as_parameter_names: true
28+
avoid_types_on_closure_parameters: true
29+
avoid_unnecessary_containers: true
30+
avoid_unused_constructor_parameters: true
31+
avoid_void_async: true
32+
await_only_futures: true
33+
camel_case_extensions: true
34+
camel_case_types: true
35+
cancel_subscriptions: true
36+
cascade_invocations: true
37+
close_sinks: true
38+
collection_methods_unrelated_type: true
39+
constant_identifier_names: false
40+
control_flow_in_finally: true
41+
depend_on_referenced_packages: false
42+
directives_ordering: true
43+
empty_catches: true
44+
empty_constructor_bodies: true
45+
empty_statements: true
46+
hash_and_equals: true
47+
implementation_imports: true
48+
library_names: true
49+
library_prefixes: true
50+
library_private_types_in_public_api: true
51+
no_adjacent_strings_in_list: true
52+
no_duplicate_case_values: true
53+
no_leading_underscores_for_local_identifiers: false
54+
overridden_fields: true
55+
package_api_docs: true
56+
package_names: true
57+
package_prefixed_library_names: true
58+
prefer_adjacent_string_concatenation: true
59+
prefer_asserts_in_initializer_lists: true
60+
prefer_collection_literals: true
61+
prefer_conditional_assignment: true
62+
prefer_const_constructors: true
63+
prefer_const_constructors_in_immutables: true
64+
prefer_const_declarations: true
65+
prefer_const_literals_to_create_immutables: true
66+
prefer_contains: true
67+
prefer_final_fields: true
68+
prefer_final_in_for_each: true
69+
prefer_for_elements_to_map_fromIterable: true
70+
prefer_foreach: true
71+
prefer_function_declarations_over_variables: false
72+
prefer_generic_function_type_aliases: true
73+
prefer_if_null_operators: true
74+
prefer_initializing_formals: true
75+
prefer_inlined_adds: true
76+
prefer_interpolation_to_compose_strings: true
77+
prefer_is_empty: true
78+
prefer_is_not_empty: true
79+
prefer_is_not_operator: true
80+
prefer_iterable_whereType: true
81+
prefer_mixin: true
82+
prefer_null_aware_operators: true
83+
prefer_spread_collections: true
84+
prefer_typing_uninitialized_variables: true
85+
prefer_void_to_null: true
86+
recursive_getters: true
87+
slash_for_doc_comments: true
88+
sort_child_properties_last: true
89+
sort_constructors_first: true
90+
sort_pub_dependencies: true
91+
sort_unnamed_constructors_first: true
92+
test_types_in_equals: true
93+
throw_in_finally: true
94+
type_init_formals: true
95+
unawaited_futures: true
96+
unnecessary_await_in_return: true
97+
unnecessary_brace_in_string_interps: true
98+
unnecessary_const: true
99+
unnecessary_getters_setters: true
100+
unnecessary_lambdas: true
101+
unnecessary_new: true
102+
unnecessary_null_aware_assignments: true
103+
unnecessary_null_in_if_null_operators: true
104+
unnecessary_overrides: true
105+
unnecessary_parenthesis: true
106+
unnecessary_statements: true
107+
unnecessary_this: true
108+
unrelated_type_equality_checks: true
109+
use_build_context_synchronously: false
110+
use_full_hex_values_for_flutter_colors: true
111+
use_function_type_syntax_for_parameters: true
112+
use_rethrow_when_possible: true
113+
use_to_and_as_if_applicable: true
114+
valid_regexps: true
115+
void_checks: true

lib/flutterflow_ui.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
library flutterflow_ui;
22

3-
export 'src/flutter_flow/flutter_flow.dart';
4-
export 'src/flutter_flow/random_data_util.dart';
3+
export 'src/utils/flutter_flow_utils.dart';
4+
export 'src/widgets/flutter_flow_widgets.dart';
File renamed without changes.

lib/src/flutter_flow/flutter_flow_charts.dart

Lines changed: 0 additions & 175 deletions
This file was deleted.

0 commit comments

Comments
 (0)