Skip to content

Commit

Permalink
v2.0.0
Browse files Browse the repository at this point in the history
fixed high cpu usage
improved documentation
added changelog file
fixed log book pdf ununiform layout
fixed app bar
updated project dependencies
  • Loading branch information
DonnC committed May 31, 2021
1 parent 67af890 commit 8f0da45
Show file tree
Hide file tree
Showing 25 changed files with 952 additions and 1,313 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## 1.0.0 - May 2021
- Initial version

## 2.0.0 - June 2021
- fixed high CPU usage
- fixed logbook pdf layout
- minor bug fixes
59 changes: 38 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,63 @@
![logo](assets/images/log-book.png)
![logo](assets/images/app_icon.png)
# LogBook Desktop App

an internship log book desktop app

## Table of contents
- [LogBook Desktop App](#logbook-desktop-app)
- [Table of contents](#table-of-contents)
- [Features](#features)
- [Log Book Format](#log-book-format)
- [Demo](#demo)
- [Screenshots](#screenshots)
- [Change Log](#change-log)
- [Plugins](#plugins)
- [Appreciation](#appreciation)
- [Made with Flutter 💙](#made-with-flutter-)
- [Ico ref](#ico-ref)

## Features
- [x] Create quick ToDos
- [x] Delete ToDos
- [x] Add Log Book entry with date and workdone
- [x] View added logbooks in grid / list view
- [x] Generate and print all logbooks

<br>

## Log Book Format
| Date | Work Done | Signature |
|------------ |----------------------------------------------------------------------------------------------------------- |----------- |
| 10/12/2020 | - Learnt about Java Spring Boot<br>- Initialized a simple Book App in spring<br>- Learnt about Git as VCS | |
| 04/01/2021 | - Helped supervisor to set up windows OS<br>- Learnt about vitualization | |
| | | |

<br>

## Demo
- watch short demo [video here](assets/screenshots/demo.mp4)
![demo](assets/screenshots/demo.gif)

<br>
<br>

## Screenshots
![home](assets/screenshots/home.png)
![new](assets/screenshots/new-entry.png)
![todo](assets/screenshots/new-todo.png)

## Plugins
- Momentum (State management)
- Sembast (Database)

- *Developed on &/ for Windows OS

### Made with Flutter 💙
## Change Log
- see [change log](CHANGELOG.md)

## Plugins
- [Momentum](https:/xamantra/momentum) (State management)
- [Sembast](https:/tekartik/sembast.dart) (Database)

## Appreciation
- Star the repo if you like this piece of work
- Want to expand it per your needs, Fork the repo


## Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

- [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook)

For help getting started with Flutter, view our
[online documentation](https://flutter.dev/docs), which offers tutorials,
samples, guidance on mobile development, and a full API reference.
## Made with Flutter 💙

### Ico ref
ico generated from [crello](https://crello.com/home/)
Binary file modified assets/images/app_icon.ico
Binary file not shown.
Binary file added assets/images/app_icon.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 removed assets/images/log-book.png
Binary file not shown.
Binary file added assets/screenshots/demo.gif
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/screenshots/demo.mp4
Binary file not shown.
10 changes: 1 addition & 9 deletions lib/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// a random num generator
import 'dart:math';

const String version = 'v1.0.0';
const String version = 'v2.0.0';

final Random _random = Random();

Expand Down Expand Up @@ -67,11 +67,3 @@ class EncryptionDatabaseCodec {
String get backUpKey => _externalFileKey;
bool get encryptionEnabled => _enableEncryption;
}

/// get a random number
int randomNumber() => _random.nextInt(99999).abs() - _random.nextInt(9739);

int randomNumberSmall() => _random.nextInt(100).abs() + _random.nextInt(99);

/// token secret word
const String secretWord = 'DC';
22 changes: 20 additions & 2 deletions lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:bitsdojo_window/bitsdojo_window.dart';
import 'package:flutter/material.dart';
import 'package:momentum/momentum.dart';
import 'package:shared_preferences_windows/shared_preferences_windows.dart';
Expand All @@ -16,6 +17,18 @@ void main() async {
// to avoid persisting views with issues
await sharedPref.clear();
runApp(momentum());

doWhenWindowReady(() {
final win = appWindow;

final initialSize = Size(900, 680);
win.minSize = initialSize;
win.size = initialSize;
win.alignment = Alignment.center;
win.title = "LogBook";
//win.maximize();
win.show();
});
}

Momentum momentum() => Momentum(
Expand Down Expand Up @@ -57,7 +70,12 @@ class MyApp extends StatelessWidget {
debugShowCheckedModeBanner: false,
title: 'LogBook',
theme: colorTheme,
home: MomentumRouter.getActivePage(context),
//home: PdfGenView(),
home: Scaffold(
body: WindowBorder(
color: borderColor,
width: 3,
child: MomentumRouter.getActivePage(context),
),
),
);
}
18 changes: 18 additions & 0 deletions lib/utils/color_themes.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// app global color
import 'package:bitsdojo_window/bitsdojo_window.dart';
import 'package:flutter/material.dart';

final ThemeData colorTheme = ThemeData(
Expand All @@ -21,3 +22,20 @@ final whiteColor = Colors.white.withOpacity(0.9);
const mainColor = Colors.grey;

const defaultPadding = 16.0;

const borderColor = mainColor;

final buttonColors = WindowButtonColors(
iconNormal: priColor,
mouseOver: secondaryColor,
mouseDown: secondaryColor,
iconMouseOver: Colors.white,
iconMouseDown: secondaryColor,
);

final closeButtonColors = WindowButtonColors(
mouseOver: Color(0xFFD32F2F),
mouseDown: Color(0xFFB71C1C),
iconNormal: priColor,
iconMouseOver: Colors.white,
);
1 change: 0 additions & 1 deletion lib/utils/index.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export 'color_themes.dart';
export 'text_style.dart';
export 'check_today.dart';
export 'pwd_algorithm.dart';
Loading

0 comments on commit 8f0da45

Please sign in to comment.