Skip to content

Commit

Permalink
Merge pull request #4 from Wrth1/ui-dev
Browse files Browse the repository at this point in the history
feat: new UI update
  • Loading branch information
Wrth1 authored Mar 24, 2024
2 parents eeb488b + 6dec818 commit 17dbc3e
Show file tree
Hide file tree
Showing 9 changed files with 462 additions and 124 deletions.
Binary file added assets/NoteEaseLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/NoteEaseLogoNoBG.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
169 changes: 134 additions & 35 deletions lib/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,31 +49,36 @@ class _NotepadHomePageState extends State<NotepadHomePage> {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: GestureDetector(
onTap: () {
// Open the link when the title is clicked
launchUrl(Uri(
scheme: 'https',
host: 'binusianorg-my.sharepoint.com',
path:
'/personal/bill_elim_binus_ac_id/_layouts/15/guestaccess.aspx',
queryParameters: {
'share': 'EkEQg25whCZKtZOdahpRq5kBQybA6nFJ-an02U60GhuOdg',
'e': 'pW9qBv',
},
));
leading: GestureDetector(
onTap: () async {
await selectNotesFromList(context);
},
child: const MouseRegion(
cursor: SystemMouseCursors.click,
child: Text('Notease - v0.3.1 | 20 Maret 2024'),
child: Padding(
padding: EdgeInsets.symmetric(horizontal: 16.0),
child: Icon(
Icons.folder_copy_outlined,
color: Colors.black,
),
),
),
),
backgroundColor: const Color.fromARGB(255, 227, 179, 235),
actions: [
// IconButton(
// icon: const Icon(
// Icons.share_rounded,
// color: Colors.black,
// ),
// onPressed: () {
// // Handle Share button
// },
// ),
IconButton(
icon: const Icon(Icons.folder_open),
onPressed: () async {
await selectNotesFromList(context);
icon: const Icon(Icons.save_rounded, color: Colors.black),
onPressed: () {
// Handle save button press
_addNote();
},
),
IconButton(
Expand All @@ -88,7 +93,9 @@ class _NotepadHomePageState extends State<NotepadHomePage> {
),
);
} else {
await GoogleSignIn().disconnect();
if (GoogleSignIn().currentUser != null) {
await GoogleSignIn().disconnect();
}
await _auth.signOut();
}
},
Expand All @@ -102,31 +109,123 @@ class _NotepadHomePageState extends State<NotepadHomePage> {
),
),
],
title: GestureDetector(
onTap: () {
// Open the link when the title is clicked
launchUrl(Uri(
scheme: 'https',
host: 'binusianorg-my.sharepoint.com',
path:
'/personal/bill_elim_binus_ac_id/_layouts/15/guestaccess.aspx',
queryParameters: {
'share': 'EkEQg25whCZKtZOdahpRq5kBQybA6nFJ-an02U60GhuOdg',
'e': 'pW9qBv',
},
));
},
child: const MouseRegion(
cursor: SystemMouseCursors.click,
child: Text(
"Notease - v0.4.0 | 24 Maret 2024",
style: TextStyle(
color: Color.fromARGB(255, 30, 29, 29),
fontWeight: FontWeight.bold,
),
),
),
),
backgroundColor: const Color.fromARGB(255, 255, 255, 255),
),
body: Column(
children: [
Expanded(
child: TextField(
controller: _noteController,
maxLines: null,
expands: true,
decoration: const InputDecoration(
hintText: 'Enter your note',
child: Padding(
padding: const EdgeInsets.symmetric(
horizontal: 25.0), // Menambahkan padding horizontal
child: TextField(
controller: _noteController,
maxLines: null,
expands: true,
textAlignVertical:
TextAlignVertical.top, // Mengatur teks ke atas
textAlign: TextAlign.start, // Mengatur teks ke kiri
decoration: const InputDecoration(
hintText: 'Enter your note',
contentPadding: EdgeInsets.symmetric(
vertical: 30.0), // Menambahkan padding vertikal
),
onSubmitted: (note) {
_addNote();
},
),
onSubmitted: (note) {
_addNote();
},
),
),
],
),
floatingActionButton: FloatingActionButton(
onPressed: () {
_addNote();
},
child: Icon(editingIndex == -1 ? Icons.add : Icons.save),
),
floatingActionButtonLocation: FloatingActionButtonLocation.endFloat,
// bottomNavigationBar: BottomAppBar(
// elevation: 0, // Menghapus efek bayangan
// shape: const CircularNotchedRectangle(),
// child: Row(
// mainAxisAlignment: MainAxisAlignment.spaceAround,
// children: [
// IconButton(
// icon: const Icon(Icons.highlight, size: 30, color: Colors.black),
// onPressed: () {
// // Handle highlight text button press
// },
// tooltip: "Highlight",
// ),
// IconButton(
// icon: const Icon(Icons.format_italic_rounded,
// size: 30, color: Colors.black),
// onPressed: () {
// // Handle highlight text button press
// },
// tooltip: "Highlight",
// ),
// IconButton(
// icon: const Icon(Icons.format_bold_rounded,
// size: 30, color: Colors.black),
// onPressed: () {
// // Handle highlight text button press
// },
// tooltip: "Highlight",
// ),
// IconButton(
// icon: const Icon(Icons.format_underline_rounded,
// size: 30, color: Colors.black),
// onPressed: () {
// // Handle highlight text button press
// },
// tooltip: "Highlight",
// ),
// IconButton(
// icon:
// const Icon(Icons.undo_rounded, size: 30, color: Colors.black),
// onPressed: () {
// // Handle undo button press
// },
// tooltip: "Undo",
// ),
// IconButton(
// icon:
// const Icon(Icons.redo_rounded, size: 30, color: Colors.black),
// onPressed: () {
// // Handle redo button press
// },
// tooltip: "Redo",
// ),
// IconButton(
// icon: const Icon(Icons.attach_file_rounded,
// size: 30, color: Colors.black),
// onPressed: () {
// // Handle add attachment button press
// },
// tooltip: "Attach-file",
// ),
// ],
// ),
// ),
);
}

Expand Down
Loading

0 comments on commit 17dbc3e

Please sign in to comment.