Skip to content

Commit

Permalink
add: analysis options
Browse files Browse the repository at this point in the history
  • Loading branch information
snaoyam committed Aug 3, 2023
1 parent 0c01560 commit ed28f90
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
analyzer:
exclude: [build/**, test/**]
linter:
rules:
prefer_const_constructors: true
prefer_const_literals_to_create_immutables: true
unnecessary_const: true
2 changes: 1 addition & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void main() {

runApp(
EasyLocalization(
supportedLocales: [const Locale('en'), const Locale('ko')],
supportedLocales: const [Locale('en'), Locale('ko')],
path: 'assets/translations',
fallbackLocale: const Locale('en'),
child: MultiProvider(
Expand Down
6 changes: 3 additions & 3 deletions lib/pages/user_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ class UserPage extends StatelessWidget {
},
}
},
{'Spacer': {}},
{
const {'Spacer': {}},
const {
'Padding': {
'padding': const EdgeInsets.fromLTRB(16, 6, 0, 6),
'padding': EdgeInsets.fromLTRB(16, 6, 0, 6),
'child': {
'Icon': {
'arg': Icons.navigate_next,
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/export_file.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import 'package:path_provider/path_provider.dart';
import 'package:permission_handler/permission_handler.dart';
import 'package:open_app_file/open_app_file.dart';

const MethodChannel _channel = const MethodChannel("org.sparcs.otlplus");
const MethodChannel _channel = MethodChannel("org.sparcs.otlplus");

Future<void> exportImage(RenderRepaintBoundary boundary) async {
final image = await boundary.toImage(pixelRatio: 3.0);
Expand Down

0 comments on commit ed28f90

Please sign in to comment.