Skip to content

Commit

Permalink
fix: update some bundles that lead to lints and fix issue with removi…
Browse files Browse the repository at this point in the history
…ng features
  • Loading branch information
jtdLab committed Sep 20, 2023
1 parent aa4f6d1 commit cd04d7c
Show file tree
Hide file tree
Showing 18 changed files with 39 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import 'package:{{project_name}}_ui_{{platform}}/{{project_name}}_ui_{{platform}
///
/// Use the [locale] parameter to set the language of the app.
///
/// Use the [themeMode] parameter to customize the app's appearance.
/// Use the [{{^ios}}themeMode{{/ios}}{{#ios}}brightness{{/ios}}] parameter to customize the app's appearance.
///
/// The [observer] parameter allows inspection of navigation events.
/// Typically, a mocked instance is used for verification purposes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import 'package:{{project_name}}_ui_{{platform}}/{{project_name}}_ui_{{platform}
///
/// Use the [locale] parameter to set the language of the app.
///
/// Use the [themeMode] parameter to customize the app's appearance.
/// Use the [{{^ios}}themeMode{{/ios}}{{#ios}}brightness{{/ios}}] parameter to customize the app's appearance.
///
/// The [observer] parameter allows inspection of navigation events.
/// Typically, a mocked instance is used for verification purposes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'package:{{project_name}}_ui_{{platform}}/{{project_name}}_ui_{{platform}
///
/// Use the [locale] parameter to set the language of the app.
///
/// Use the [themeMode] parameter to customize the app's appearance.
/// Use the [{{^ios}}themeMode{{/ios}}{{#ios}}brightness{{/ios}}] parameter to customize the app's appearance.
///
/// The [observer] parameter allows inspection of navigation events.
/// Typically, a mocked instance is used for verification purposes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void main() {
themeMode: ThemeMode.light,
widget: _get{{project_name.pascalCase()}}{{name.pascalCase()}}(
theme:
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12)),
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12),),
),
),
),
Expand All @@ -47,7 +47,7 @@ void main() {
themeMode: ThemeMode.dark,
widget: _get{{project_name.pascalCase()}}{{name.pascalCase()}}(
theme:
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12)),
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12),),
),
),
),
Expand Down Expand Up @@ -95,7 +95,7 @@ void main() {
themeMode: ThemeMode.light,
widget: _get{{project_name.pascalCase()}}{{name.pascalCase()}}(
theme:
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12)),
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12),),
),
),
),
Expand All @@ -112,7 +112,7 @@ void main() {
themeMode: ThemeMode.dark,
widget: _get{{project_name.pascalCase()}}{{name.pascalCase()}}(
theme:
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12)),
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12),),
),
),
),
Expand Down Expand Up @@ -158,7 +158,7 @@ void main() {
brightness: Brightness.dark,
widget: _get{{project_name.pascalCase()}}{{name.pascalCase()}}(
theme:
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12)),
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12),),
),
),
),
Expand All @@ -175,7 +175,7 @@ void main() {
brightness: Brightness.dark,
widget: _get{{project_name.pascalCase()}}{{name.pascalCase()}}(
theme:
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12)),
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12),),
),
),
),
Expand Down Expand Up @@ -223,7 +223,7 @@ void main() {
themeMode: ThemeMode.light,
widget: _get{{project_name.pascalCase()}}{{name.pascalCase()}}(
theme:
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12)),
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12),),
),
),
),
Expand All @@ -240,7 +240,7 @@ void main() {
themeMode: ThemeMode.dark,
widget: _get{{project_name.pascalCase()}}{{name.pascalCase()}}(
theme:
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12)),
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12),),
),
),
),
Expand Down Expand Up @@ -288,7 +288,7 @@ void main() {
themeMode: ThemeMode.light,
widget: _get{{project_name.pascalCase()}}{{name.pascalCase()}}(
theme:
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12)),
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12),),
),
),
),
Expand All @@ -305,7 +305,7 @@ void main() {
themeMode: ThemeMode.dark,
widget: _get{{project_name.pascalCase()}}{{name.pascalCase()}}(
theme:
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12)),
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12),),
),
),
),
Expand Down Expand Up @@ -353,7 +353,7 @@ void main() {
themeMode: ThemeMode.light,
widget: _get{{project_name.pascalCase()}}{{name.pascalCase()}}(
theme:
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12)),
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12),),
),
),
),
Expand All @@ -370,7 +370,7 @@ void main() {
themeMode: ThemeMode.dark,
widget: _get{{project_name.pascalCase()}}{{name.pascalCase()}}(
theme:
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12)),
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12),),
),
),
),
Expand Down Expand Up @@ -416,7 +416,7 @@ void main() {
themeMode: ThemeMode.light,
widget: _get{{project_name.pascalCase()}}{{name.pascalCase()}}(
theme:
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12)),
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12),),
),
),
),
Expand All @@ -433,7 +433,7 @@ void main() {
themeMode: ThemeMode.dark,
widget: _get{{project_name.pascalCase()}}{{name.pascalCase()}}(
theme:
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12)),
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12),),
),
),
),
Expand Down Expand Up @@ -479,7 +479,7 @@ void main() {
themeMode: ThemeMode.light,
widget: _get{{project_name.pascalCase()}}{{name.pascalCase()}}(
theme:
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12)),
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12),),
),
),
),
Expand All @@ -496,7 +496,7 @@ void main() {
themeMode: ThemeMode.dark,
widget: _get{{project_name.pascalCase()}}{{name.pascalCase()}}(
theme:
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12)),
const {{project_name.pascalCase()}}{{name.pascalCase()}}Theme(backgroundColor: Color(0xFF12FF12),),
),
),
),
Expand Down
6 changes: 5 additions & 1 deletion packages/rapid_cli/lib/src/commands/platform.dart
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,11 @@ mixin _PlatformMixin on _Rapid {

final rootPackage = platformDirectory.rootPackage;
final remainingFeaturePackages = featuresDirectory.featurePackages()
..remove(featurePackage);
..removeWhere(
(e) =>
e.path == featurePackage.path &&
e.packageName == featurePackage.packageName,
);

logger.newLine();

Expand Down
Loading

0 comments on commit cd04d7c

Please sign in to comment.