Giter Club home page Giter Club logo

mediminder's Introduction

Mediminder

An Offline Medicine Reminder
Built with Flutter, Provider and BLoC pattern

Key Features

  • Homepage medicine list
    • Homepage containing all the registered Mediminders
  • Shared preference data storage
    • Storing medicine objects in shared preference
    • Medicine list retrieval upon application launch
    • JSON encoding and decoding
  • Adding new Mediminder, details include:
    • Medicine name
    • Dosage in milligrams
    • Medicine icon selection (Optional)
    • Reminder interval selection
    • Starting time using Time Picker
  • Notification reminding
    • Usage of Local Notifications to display Mediminders
    • Randomly-generated IDs for each notification
    • Daily reminders with set intervals, based on user preference
  • Registeration error checking
    • Name duplication check
    • Empty/not specified fields check
    • Medicine type is optional
  • Individual medicine detail page
    • In-depth details about each Mediminder upon tapping
  • Delete a Mediminder:
    • Erase the specified medicine object from shared preference and list
    • Erase corresponding scheduled notifications

Screenshots

         

mediminder's People

Contributors

hossamelghamry avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mediminder's Issues

Some issues on iOS

Some issues:

Launching lib/main.dart on Paulo’s iPhone 8 in debug mode...
Found saved certificate choice "iPhone Developer: Paulo Coutinho (XXX)". To clear, use "flutter config".
Signing iOS app for device deployment using developer identity: "iPhone Developer: Paulo Coutinho (XXX)"
Running Xcode build...                                                  
 ├─Assembling Flutter resources...                           1.5s
 └─Compiling, linking and signing...                         2.9s
Xcode build done.                                            6.0s
flutter: ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
flutter: The following assertion was thrown during layout:              
flutter: A RenderFlex overflowed by 12 pixels on the bottom.            
flutter:                                                                
flutter: The overflowing RenderFlex has an orientation of Axis.vertical.
flutter: The edge of the RenderFlex that is overflowing has been marked in the rendering with a yellow and
flutter: black striped pattern. This is usually caused by the contents being too big for the RenderFlex.
flutter: Consider applying a flex factor (e.g. using an Expanded widget) to force the children of the
flutter: RenderFlex to fit within the available space instead of being sized to their natural size.
flutter: This is considered an error condition because it indicates that there is content that cannot be
flutter: seen. If the content is legitimately bigger than the available space, consider clipping it with a
flutter: ClipRect widget before putting it in the flex, or using a scrollable container rather than a Flex,
flutter: like a ListView.                                               
flutter: The specific RenderFlex in question is: RenderFlex#1d4fc relayoutBoundary=up5 OVERFLOWING:
flutter:   creator: Column ← DecoratedBox ← ConstrainedBox ← Container ← TopContainer ← Flexible ← Column ←
flutter:     DecoratedBox ← Container ← MediaQuery ← LayoutId-[<_ScaffoldSlot.body>] ← CustomMultiChildLayout ←
flutter:     ⋯                                                          
flutter:   parentData: <none> (can use size)                            
flutter:   constraints: BoxConstraints(w=375.0, 0.0<=h<=174.3)          
flutter:   size: Size(375.0, 174.3)                                     
flutter:   direction: vertical                                          
flutter:   mainAxisAlignment: start                                     
flutter:   mainAxisSize: max                                            
flutter:   crossAxisAlignment: center                                   
flutter:   verticalDirection: down                                      
flutter: ◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤◢◤
flutter: ════════════════════════════════════════════════════════════════════════════════════════════════════
Installing and launching...                                        18.2s
Syncing files to device Paulo’s iPhone 8...                      1,636ms

🔥  To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R".
An Observatory debugger and profiler on Paulo’s iPhone 8 is available at: http://127.0.0.1:1024/niLVrM4tRJY=/
For a more detailed help message, press "h". To detach, press "d"; to quit, press "q".
flutter: Another exception was thrown: A RenderFlex overflowed by 15 pixels on the right.
flutter: Another exception was thrown: A RenderFlex overflowed by 15 pixels on the right.
Lost connection to device.

IMG_D09D494A8690-1

IMG_07088D9C960A-1

Not able to start

Could you please provide a read me to start the app and the minimum installation requirement?

does not exist url

Target of URI doesn't exist: 'package:provider/provider.dart'.
Try creating the file referenced by the URI, or Try using a URI for a file that does exist.dart(uri_does_not_exist)

Project not compiling

hi,I have downloaded your project from github,extracted it and ran it.It shows a following error.Can you help me out?

Error message:

Compiler message:
file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/flare_flutter-1.5.4/lib/flare.dart:1027:18: Error: The argument type 'Uint16List' can't be assigned to the parameter type 'Int32List'.

  • 'Uint16List' is from 'dart:typed_data'.
  • 'Int32List' is from 'dart:typed_data'.
    Try changing the type of the parameter, or casting the argument to 'Int32List'.
    indices: _indices, textureCoordinates: _uvBuffer);
    ^
    Compiler failed on C:\Users\test\Desktop\software\HossamElghamry-Mediminder-53684f7\lib\main.dart
    Finished with error: Gradle task assembleDebug failed with exit code 1

App not running on emulator and simulator showing following error.

Downloaded the zip file and extracted the zip file tried to run in emulator showing the following error.

In Android:

[!] Your app isn't using AndroidX.
    To avoid potential build failures, you can quickly migrate your app by following the steps on https://goo.gl/CP92wY.
Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:preDebugBuild'.
> Android dependency 'androidx.core:core' has different version for the compile (1.0.0-rc01) and runtime (1.0.1) classpath. You should manually set the same version via DependencyResolution

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 44s
AndroidX incompatibilities may have caused this build to fail. Please migrate your app to AndroidX. See https://goo.gl/CP92wY.
Finished with error: Gradle task assembleDebug failed with exit code 1```   

In IOS:  

```Launching lib/main.dart on iPhone 11 Pro Max in debug mode...
Running Xcode build...
Xcode build done.                                           19.6s
Syncing files to device iPhone 11 Pro Max...
[VERBOSE-2:FontFamily.cpp(184)] Could not get cmap table size!
[VERBOSE-3:FontCollection.cpp(95)] nTypefaces == 0
Lost connection to device.```

SOUND/Notifications doesn't work

Hello! i have some problems whit the Sound of Notification

this is the dart analyses info:

error: The argument type 'String' can't be assigned to the parameter type 'AndroidNotificationSound'. (argument_type_not_assignable at [mediminder] lib/src/ui/new_entry/new_entry.dart:335)

and the file "new_entry.dart" still te same original one from here

var androidPlatformChannelSpecifics = AndroidNotificationDetails(
'repeatDailyAtTime channel id',
'repeatDailyAtTime channel name',
'repeatDailyAtTime description',
importance: Importance.Max,
sound: "sound",
ledColor: Color.fromRGBO(144, 23, 59, 1),
ledOffMs: 1000,
ledOnMs: 1000,
enableLights: true,
);

the error is in the line

sound: "sound".

My pub spec:

version: 1.0.0+1

environment:
sdk: ">=2.1.0 <3.1.1"

dependencies:
splashscreen: ^1.2.0
flutter:
sdk: flutter

cupertino_icons: ^0.1.2
rxdart: ^0.22.0
provider: ^3.0.0+1
shared_preferences: 0.5.2
flutter_local_notifications:

firebase_core: ^0.4.4+2
cloud_firestore: ^0.13.4+1
firebase_storage: ^3.1.3
firebase_auth: ^0.15.5+2
firebase_analytics: ^5.0.11
image_picker: ^0.6.3+4

flare_flutter:
git:
url: git://github.com/2d-inc/Flare-Flutter.git
ref: dev
path: flare_flutter

dev_dependencies:
flutter_test:
sdk: flutter
flutter_launcher_icons: "^0.7.2"

flutter_icons:
android: "launcher_icon"
ios: false
image_path: "assets/logo/logo_app2.png"

how can i fix this? thanks in advance
Love u :)

License?

Pls add license, i would like to use it

The notifications won't work when app is terminated.

The notification and sound works perfectly when the application is running. As soon as the app is terminated, it won't work. I've read that flutter local notifications do work even when the app is not running in the background. Please help!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.