Skip to content

Final Year Project - Being built on Flutter šŸ’– together with Django along with lots of loveā¤

Notifications You must be signed in to change notification settings

raajeshmani/Thought_Provocative_Journal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Ā 

History

7 Commits
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 

Repository files navigation

Thought Provocative Journal

A Flutter based clean and minimalistic journal which allows you to tag emotions and people to events in your life for future analysis.

Screens in this app

Jot it Down !!

  • The best story you've ever heard is the one you told yourself in the head
  • Make the design smoooooooth => Smoooooooooothhh Operator ==> Smmmmoooooth Operationnn
  • Make a poof Feature => Ever found a day where you just had to tell the story but don't want it recorded.
    • We got that covered for ya. Make a Poof Story which auto deletes in a day.
    • But on one condition. This has word limit. Make sure you have figured out exactly what should be poofed from your head

Custom Editions to Default Package

material/bottom_sheet.dart - _ModalBottomSheetLayout

BoxConstraints getConstraintsForChild(BoxConstraints constraints) {
    return BoxConstraints(
      minWidth: constraints.maxWidth,
      maxWidth: constraints.maxWidth,
      minHeight: 0.0,
      // maxHeight: isScrollControlled
      //   ? constraints.maxHeight
      //   : constraints.maxHeight * 9.0 / 16.0,
      maxHeight: constraints.maxHeight,
    );

material/text_selection.dart - _TextSelectionToolbar


const _TextSelectionToolbar({
    Key key,
    this.handleEmotion,
    this.handleCut,
    this.handleCopy,
    this.handlePaste,
    this.handleSelectAll,
}) : super(key: key);

final VoidCallback handleEmotion;  
final VoidCallback handleCut;
final VoidCallback handleCopy;
final VoidCallback handlePaste;
final VoidCallback handleSelectAll;

// Inside Build 

items.add(FlatButton(child: Text('EMOTION'), onPressed: handleEmotion));

material/text_selection.dart - _MaterialTextSelectionControls

child: _TextSelectionToolbar(
    handleEmotion: () => handleEmotion(delegate),
    handleCut: canCut(delegate) ? () => handleCut(delegate) : null,
    handleCopy: canCopy(delegate) ? () => handleCopy(delegate) : null,
    handlePaste: canPaste(delegate) ? () => handlePaste(delegate) : null,
    handleSelectAll:
        canSelectAll(delegate) ? () => handleSelectAll(delegate) : null,
),

widgets/text_selection.dart - TextSelectionControls

import 'package:thought_provocative_journal/tools/text_input_screen.dart';
// Custom Function

  void handleEmotion(TextSelectionDelegate delegate) {
    final TextEditingValue value = delegate.textEditingValue;
    String selectedText = value.selection.textInside(value.text);
    delegate.textEditingValue = TextEditingValue(
      text: value.text,
      selection: TextSelection.collapsed(offset: value.selection.end),
    );
    delegate.bringIntoView(delegate.textEditingValue.selection.extent);
    delegate.hideToolbar();

    // Custom Function which is imported
    works(selectedText);
  }

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:

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

About

Final Year Project - Being built on Flutter šŸ’– together with Django along with lots of loveā¤

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages