Skip to content

Commit

Permalink
Fixed all lint
Browse files Browse the repository at this point in the history
guyluz11 committed Dec 13, 2023
1 parent 6c8a246 commit e735457
Showing 22 changed files with 66 additions and 312 deletions.
41 changes: 21 additions & 20 deletions .idea/libraries/Dart_SDK.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 3 additions & 27 deletions .idea/libraries/Flutter_Plugins.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -17,7 +17,6 @@ analyzer:
- "**/*.config.dart"
- "lib/infrastructure/core/gen/**"


linter:
rules:
# Use parameter order as in json response
@@ -26,6 +25,3 @@ linter:
avoid_classes_with_only_static_members: false

sort_constructors_first: true

# Good packages document everything
public_member_api_docs: true
21 changes: 1 addition & 20 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ class MyApp extends StatelessWidget {
bodySmall: TextStyle(
color: Colors.white,
),
bodyMedium:TextStyle(
bodyMedium: TextStyle(
color: Colors.white,
),
bodyLarge: TextStyle(
@@ -51,25 +51,6 @@ class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
// title: 'Flutter Demo',
// theme: ThemeData(
// // This is the theme of your application.
// //
// // Try running your application with "flutter run". You'll see the
// // application has a blue toolbar. Then, without quitting the app, try
// // changing the primarySwatch below to Colors.green and then invoke
// // "hot reload" (press "r" in the console where you ran "flutter run",
// // or simply save your changes to "hot reload" in a Flutter IDE).
// // Notice that the counter didn't reset back to zero; the application
// // is not restarted.
// primarySwatch: Colors.blue,
// // This makes the visual density adapt to the platform that you run
// // the app on. For desktop platforms, the controls will be smaller and
// // closer together (more dense) than on mobile platforms.
// visualDensity: VisualDensity.adaptivePlatformDensity,
// ),
// home: MyHomePage(title: 'Flutter Demo Home Page'),

title: 'CyBear Jinni Smart Home',
localizationsDelegates: context.localizationDelegates,
supportedLocales: context.supportedLocales,
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ class AboutPageContentDesktop extends StatelessWidget {
Theme.of(context).primaryColor,
Theme.of(context).colorScheme.secondary,
Theme.of(context).colorScheme.secondary,
Theme.of(context).primaryColor
Theme.of(context).primaryColor,
],
),
),
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ class AboutPageContentMobileTablet extends StatelessWidget {
Theme.of(context).primaryColor,
Theme.of(context).colorScheme.secondary,
Theme.of(context).colorScheme.secondary,
Theme.of(context).primaryColor
Theme.of(context).primaryColor,
],
),
),
2 changes: 1 addition & 1 deletion lib/presentation/faq_page/faq_page.dart
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ class FaqPage extends StatelessWidget {
Theme.of(context).primaryColor,
Theme.of(context).colorScheme.secondary,
Theme.of(context).colorScheme.secondary,
Theme.of(context).primaryColor
Theme.of(context).primaryColor,
],
),
),
2 changes: 1 addition & 1 deletion lib/presentation/home_page/home_page.dart
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ class HomePage extends StatelessWidget {
Theme.of(context).primaryColor,
Theme.of(context).colorScheme.secondary,
Theme.of(context).colorScheme.secondary,
Theme.of(context).primaryColor
Theme.of(context).primaryColor,
],
),
),
Original file line number Diff line number Diff line change
@@ -49,7 +49,7 @@ class EasyToSetUpBenefitBlock extends StatelessWidget {
),
),
],
)
),
],
),
const SizedBox(
Original file line number Diff line number Diff line change
@@ -54,7 +54,7 @@ class PrivacyAndOpenSourceBenefitBlock extends StatelessWidget {
),
),
],
)
),
],
),
const SizedBox(
2 changes: 1 addition & 1 deletion lib/presentation/integrations_page/integrations_page.dart
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ class IntegrationsPage extends StatelessWidget {
Theme.of(context).primaryColor,
Theme.of(context).colorScheme.secondary,
Theme.of(context).colorScheme.secondary,
Theme.of(context).primaryColor
Theme.of(context).primaryColor,
],
),
),
Original file line number Diff line number Diff line change
@@ -86,7 +86,7 @@ class HomePageSecondPart extends StatelessWidget {
const SizedBox(),
],
),
)
),
],
),
],
Original file line number Diff line number Diff line change
@@ -199,11 +199,11 @@ class HomePageThiredPart extends StatelessWidget {
),
],
),
)
),
],
),
),
)
),
],
),
],
2 changes: 1 addition & 1 deletion lib/presentation/news_page/news.dart
Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ class NewsTab extends StatelessWidget {
Container(
height: 20,
),
const Text('Empty_history').tr()
const Text('Empty_history').tr(),
],
);
}
2 changes: 1 addition & 1 deletion lib/presentation/set_up_page/set_up_page.dart
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ class SetUpPage extends StatelessWidget {
Theme.of(context).primaryColor,
Theme.of(context).colorScheme.secondary,
Theme.of(context).colorScheme.secondary,
Theme.of(context).primaryColor
Theme.of(context).primaryColor,
],
),
),
8 changes: 4 additions & 4 deletions lib/presentation/set_up_page/set_up_page_content_desktop.dart
Original file line number Diff line number Diff line change
@@ -316,7 +316,7 @@ class SetUpPageContentDesktop extends StatelessWidget {
const Icon(Icons.error),
),
),
)
),
],
),
const SizedBox(
@@ -369,7 +369,7 @@ class SetUpPageContentDesktop extends StatelessWidget {
const Icon(Icons.error),
),
),
)
),
],
),
const SizedBox(
@@ -422,7 +422,7 @@ class SetUpPageContentDesktop extends StatelessWidget {
const Icon(Icons.error),
),
),
)
),
],
),
const SizedBox(
@@ -568,7 +568,7 @@ class SetUpPageContentDesktop extends StatelessWidget {
),
),
],
)
),
],
),
],
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ class NavigationDrawerWidget extends StatelessWidget {
Theme.of(context).primaryColor,
Theme.of(context).colorScheme.secondary,
Theme.of(context).colorScheme.secondary,
Theme.of(context).primaryColor
Theme.of(context).primaryColor,
],
),
),
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ class NavigationDrawerHeader extends StatelessWidget {
Theme.of(context).primaryColor,
Theme.of(context).colorScheme.secondary,
Theme.of(context).colorScheme.secondary,
Theme.of(context).primaryColor
Theme.of(context).primaryColor,
],
),
),
Loading

0 comments on commit e735457

Please sign in to comment.