Skip to content

Commit

Permalink
fix all warning
Browse files Browse the repository at this point in the history
  • Loading branch information
HishamAlNahas committed Dec 10, 2024
1 parent 5593315 commit f3e97ce
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 11 deletions.
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"cSpell.words": [
"Amiri",
"Jozoor"
]
}
5 changes: 1 addition & 4 deletions lib/models/FolderNameDialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import '../functions/isRtlTextDirection.dart';
import '../translations/translations.dart';
import 'MultiLineText.dart';

// ignore: must_be_immutable
class FolderNameDialog extends StatelessWidget {
final Map<String, String> locale;
final Function onSubmit;
Expand Down Expand Up @@ -102,8 +103,4 @@ class FolderNameDialog extends StatelessWidget {
);
}

@override
void dispose() {
folderNameController.dispose;
}
}
5 changes: 2 additions & 3 deletions lib/models/NoteButton.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import 'package:note_files/collection/Note.dart';
import 'package:note_files/functions/boolFn.dart';
import 'package:note_files/requiredData.dart';

import '../collection/isarCURD.dart';
import '../models/FolderOrNoteButton.dart';
import '../prioityColors.dart';
import '../priorityColors.dart';
import '../screens/notePage/NotePage.dart';
import 'FadeRoute.dart';
import 'MultiLineText.dart';
Expand Down Expand Up @@ -36,7 +35,7 @@ class NoteButton extends StatelessWidget {
final String noteTime = formatDate(note.date!, [yy, "/", mm, "/", dd, " ", hh, ":", nn]);
final String noteContent = note.content??"";
final int noteId = note.id;
final IsarService db = requiredData.db;
// final IsarService db = requiredData.db;
final TextDirection titleDirection = note.isTitleRtl??false ? TextDirection.rtl :TextDirection.ltr;
final TextDirection contentDirection = note.isContentRtl??false ? TextDirection.rtl :TextDirection.ltr;
final int? parentFolderId = note.parentFolderId;
Expand Down
1 change: 1 addition & 0 deletions lib/models/isRtlBackIcon.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';

// ignore: must_be_immutable
class IsRtlBackIcon extends StatelessWidget {
bool isRtl;
IsRtlBackIcon({super.key, this.isRtl = false});
Expand Down
3 changes: 2 additions & 1 deletion lib/models/popupMenu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'package:provider/provider.dart';

import '../provider/searchProvider.dart';

// ignore: must_be_immutable
class MyPopUpMenu extends StatefulWidget {
String initialText;
final List<String> popList;
Expand Down Expand Up @@ -40,6 +41,6 @@ class _MyPopUpMenuState extends State<MyPopUpMenu> {
),
),
);
;

}
}
File renamed without changes.
1 change: 1 addition & 0 deletions lib/screens/EditNotePage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import '../models/priorityMenu.dart';
import '../provider/PriorityProvider.dart';
import '../translations/translations.dart';

// ignore: must_be_immutable
class EditNote extends StatelessWidget {
final int? parentFolderId;

Expand Down
2 changes: 1 addition & 1 deletion lib/screens/notePage/NotePage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import '../../collection/isarCURD.dart';
import '../../models/FadeRoute.dart';
import '../../models/MyWarningDialog.dart';
import '../../models/styles.dart';
import '../../prioityColors.dart';
import '../../priorityColors.dart';
import '../../provider/ListViewProvider.dart';
import '../../provider/PriorityProvider.dart';
import '../../translations/translations.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/screens/notePage/widgets/task.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class _TaskState extends State<Task> {

@override
Widget build(BuildContext context) {
final Map<String, String> locale = requiredData.locale;
// final Map<String, String> locale = requiredData.locale;
return FutureBuilder<Note?>(
future: noteFuture,
builder: (context, snapshot) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.7.9+20
version: 1.8.0+21

environment:
sdk: '>=3.0.6 <4.0.0'
Expand Down

0 comments on commit f3e97ce

Please sign in to comment.