Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change name #10

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .flutter-plugins-dependencies
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.1/","dependencies":[]},{"name":"sqflite","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.0+3/","dependencies":[]}],"android":[{"name":"path_provider","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.1/","dependencies":[]},{"name":"sqflite","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.0+3/","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.0/","dependencies":[]},{"name":"sqflite","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.0+3/","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.0.0/","dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"/Users/bimsina/src/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.1/","dependencies":[]}],"web":[]},"dependencyGraph":[{"name":"path_provider","dependencies":["path_provider_macos","path_provider_linux","path_provider_windows"]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"sqflite","dependencies":[]}],"date_created":"2021-04-27 20:22:14.300319","version":"2.0.5"}
{"info":"This is a generated file; do not edit or check into version control.","plugins":{"ios":[{"name":"path_provider","path":"/home/adi/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.1/","dependencies":[]},{"name":"sqflite","path":"/home/adi/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.0+3/","dependencies":[]}],"android":[{"name":"path_provider","path":"/home/adi/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-2.0.1/","dependencies":[]},{"name":"sqflite","path":"/home/adi/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.0+3/","dependencies":[]}],"macos":[{"name":"path_provider_macos","path":"/home/adi/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_macos-2.0.0/","dependencies":[]},{"name":"sqflite","path":"/home/adi/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-2.0.0+3/","dependencies":[]}],"linux":[{"name":"path_provider_linux","path":"/home/adi/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-2.0.0/","dependencies":[]}],"windows":[{"name":"path_provider_windows","path":"/home/adi/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-2.0.1/","dependencies":[]}],"web":[]},"dependencyGraph":[{"name":"path_provider","dependencies":["path_provider_macos","path_provider_linux","path_provider_windows"]},{"name":"path_provider_linux","dependencies":[]},{"name":"path_provider_macos","dependencies":[]},{"name":"path_provider_windows","dependencies":[]},{"name":"sqflite","dependencies":[]}],"date_created":"2021-10-03 16:39:28.956147","version":"2.5.2"}
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ android {

defaultConfig {
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId "com.bimsina.notes_app"
applicationId "com.beodroid.mynotes"
minSdkVersion 16
targetSdkVersion 30
versionCode flutterVersionCode.toInteger()
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.bimsina.notes_app">
package="com.beodroid.mynotes">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.bimsina.notes_app">
package="com.beodroid.mynotes">
<application
android:label="Note Keeper"
android:icon="@mipmap/ic_launcher">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.bimsina.notes_app
package com.beodroid.mynotes

import io.flutter.embedding.android.FlutterActivity

Expand Down
2 changes: 1 addition & 1 deletion android/app/src/profile/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.bimsina.notes_app">
package="com.beodroid.mynotes">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
Expand Down
2 changes: 1 addition & 1 deletion lib/db_helper/db_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'dart:io';
import 'package:sqflite/sqflite.dart';
import 'dart:async';
import 'package:path_provider/path_provider.dart';
import 'package:notes_app/modal_class/notes.dart';
import 'package:mynotes/modal_class/notes.dart';

class DatabaseHelper {
static DatabaseHelper _databaseHelper; // Singleton DatabaseHelper
Expand Down
14 changes: 7 additions & 7 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:flutter/material.dart';
import 'package:notes_app/screens/note_list.dart';
import 'package:mynotes/screens/note_list.dart';

void main() {
runApp(MyApp());
Expand All @@ -9,30 +9,30 @@ class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'NoteKeeper',
title: 'Notely',
debugShowCheckedModeBanner: false,
theme: ThemeData(
primarySwatch: Colors.deepPurple,
primarySwatch: Colors.blueGrey,
textTheme: TextTheme(
headline5: TextStyle(
fontFamily: 'Sans',
fontWeight: FontWeight.bold,
color: Colors.black,
color: Colors.blueGrey[800],
fontSize: 24),
bodyText2: TextStyle(
fontFamily: 'Sans',
fontWeight: FontWeight.bold,
color: Colors.black,
color: Colors.blueGrey[500],
fontSize: 20),
bodyText1: TextStyle(
fontFamily: 'Sans',
fontWeight: FontWeight.normal,
color: Colors.black,
color: Colors.blueGrey[500],
fontSize: 18),
subtitle2: TextStyle(
fontFamily: 'Sans',
fontWeight: FontWeight.normal,
color: Colors.black,
color: Colors.blueGrey[500],
fontSize: 14),
),
),
Expand Down
93 changes: 93 additions & 0 deletions lib/screens/note_about.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
import 'package:flutter/material.dart';

class NoteAbout extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.blueGrey[800],
appBar: AppBar(
title: Text('About MyNotes'),
),
body: ListView(
children: <Widget>[
SizedBox(height: 20,),
Container(
padding: EdgeInsets.all(50),
child: Text('MyNotes is a dark version of NoteKeeper app created by Bimsina (https://github.com/bimsina/notes-app)',
textAlign: TextAlign.center,
style: TextStyle(
color: Colors.blueGrey[100],
fontSize: 14,
),
),
),
ListTile(
title: Text(
'App Name',
style: TextStyle(
color: Colors.blueGrey[100],
fontSize: 14,
),
),
trailing: Text(
'MyNotes',
style: TextStyle(
color: Colors.blueGrey[100],
fontSize: 14,
),
),
),

ListTile(
title: Text(
'Version',
style: TextStyle(
color: Colors.blueGrey[100],
fontSize: 14,
),
),
trailing: Text(
'1.0.0',
style: TextStyle(
color: Colors.blueGrey[100],
fontSize: 14,
),
),
),
ListTile(
title: Text(
'Developer',
style: TextStyle(
color: Colors.blueGrey[100],
fontSize: 14,
),
),
trailing: Text(
'beodroid@gmail.com',
style: TextStyle(
color: Colors.blueGrey[100],
fontSize: 14,
),
),
),
ListTile(
title: Text(
'License',
style: TextStyle(
color: Colors.blueGrey[100],
fontSize: 14,
),
),
trailing: Text(
'MIT',
style: TextStyle(
color: Colors.blueGrey[100],
fontSize: 14,
),
),
),
],
),
);
}
}
53 changes: 27 additions & 26 deletions lib/screens/note_detail.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
import 'package:notes_app/db_helper/db_helper.dart';
import 'package:notes_app/modal_class/notes.dart';
import 'package:notes_app/utils/widgets.dart';
import 'package:mynotes/db_helper/db_helper.dart';
import 'package:mynotes/modal_class/notes.dart';
import 'package:mynotes/utils/widgets.dart';

class NoteDetail extends StatefulWidget {
final String appBarTitle;
Expand Down Expand Up @@ -47,15 +47,18 @@ class NoteDetailState extends State<NoteDetail> {
),
backgroundColor: colors[color],
leading: IconButton(
icon: Icon(Icons.arrow_back_ios, color: Colors.black),
icon: Icon(
Icons.arrow_back_ios,
color: Colors.blueGrey[700],
),
onPressed: () {
isEdited ? showDiscardDialog(context) : moveToLastScreen();
}),
actions: <Widget>[
IconButton(
icon: Icon(
Icons.save,
color: Colors.black,
color: Colors.blueGrey[700],
),
onPressed: () {
titleController.text.length == 0
Expand All @@ -64,7 +67,10 @@ class NoteDetailState extends State<NoteDetail> {
},
),
IconButton(
icon: Icon(Icons.delete, color: Colors.black),
icon: Icon(
Icons.delete,
color: Colors.blueGrey[700],
),
onPressed: () {
showDeleteDialog(context);
},
Expand Down Expand Up @@ -146,20 +152,18 @@ class NoteDetailState extends State<NoteDetail> {
actions: <Widget>[
TextButton(
child: Text("No",
style: Theme.of(context)
.textTheme
.bodyText2
.copyWith(color: Colors.purple)),
style: Theme.of(context).textTheme.bodyText2.copyWith(
color: Colors.blueGrey[700],
)),
onPressed: () {
Navigator.of(context).pop();
},
),
TextButton(
child: Text("Yes",
style: Theme.of(context)
.textTheme
.bodyText2
.copyWith(color: Colors.purple)),
style: Theme.of(context).textTheme.bodyText2.copyWith(
color: Colors.blueGrey[700],
)),
onPressed: () {
Navigator.of(context).pop();
moveToLastScreen();
Expand Down Expand Up @@ -187,10 +191,9 @@ class NoteDetailState extends State<NoteDetail> {
actions: <Widget>[
TextButton(
child: Text("Okay",
style: Theme.of(context)
.textTheme
.bodyText2
.copyWith(color: Colors.purple)),
style: Theme.of(context).textTheme.bodyText2.copyWith(
color: Colors.blueGrey[700],
)),
onPressed: () {
Navigator.of(context).pop();
},
Expand All @@ -217,20 +220,18 @@ class NoteDetailState extends State<NoteDetail> {
actions: <Widget>[
TextButton(
child: Text("No",
style: Theme.of(context)
.textTheme
.bodyText2
.copyWith(color: Colors.purple)),
style: Theme.of(context).textTheme.bodyText2.copyWith(
color: Colors.blueGrey[700],
)),
onPressed: () {
Navigator.of(context).pop();
},
),
TextButton(
child: Text("Yes",
style: Theme.of(context)
.textTheme
.bodyText2
.copyWith(color: Colors.purple)),
style: Theme.of(context).textTheme.bodyText2.copyWith(
color: Colors.blueGrey[700],
)),
onPressed: () {
Navigator.of(context).pop();
_delete();
Expand Down
Loading