forked from chatsen/chatsen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add: custom commands base (without creation menu for now), fixed Blur…
…Modal going below keyboard, fixed tooltips going below the finger, added custom mentions base, added imgur upload for supported images, added expandable input field for long sentences
- Loading branch information
Anonymous
authored and
Anonymous
committed
Jun 30, 2021
1 parent
a104f6b
commit 1859675
Showing
16 changed files
with
477 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
class Command { | ||
final String trigger; | ||
final String command; | ||
|
||
Command({ | ||
required this.trigger, | ||
required this.command, | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import 'package:bloc/bloc.dart'; | ||
import 'package:chatsen/Commands/Command.dart'; | ||
|
||
class CommandsCubit extends Cubit<List<Command>> { | ||
CommandsCubit() | ||
: super([ | ||
Command(trigger: '/tuck', command: '/me tucks {1} to bed FeelsOkayMan {2+}'), | ||
Command(trigger: '/test3', command: '{2+} {1} z'), | ||
Command(trigger: '/ee', command: '{1} {2} {1} {2} {1} {2} {1} {2} {1} {2} {1} {2} {1} {2} {1} {2} {1} {2} {1} {2} {1} {2} {1} {2} {1} {2} {1} {2} {1} {2} {1} {2}'), | ||
Command(trigger: '/kaomoji', command: '(⌐■_■) kaomoji users (⌐■_■) kaomoji users (⌐■_■) kaomoji users (⌐■_■) kaomoji users'), | ||
Command(trigger: '/dongers', command: 'ヽ༼ຈل͜ຈ༽ノ raise your dongersヽ༼ຈل͜ຈ༽ノ raise your dongers ヽ༼ຈل͜ຈ༽ノ raise your dongers ヽ༼ຈل͜ຈ༽ノ raise your dongers ヽ༼ຈل͜ຈ༽ノ raise your dongers'), | ||
]); | ||
|
||
void add(Command cmd) => emit([...state, cmd]); | ||
void remove(Command cmd) => state.removeWhere((element) => element == cmd); | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.