edited tones, added vibrate
This commit is contained in:
@ -53,7 +53,7 @@ Future<void> seedDb(AppDatabase database) async {
|
||||
// final int totalActions = 5;
|
||||
final int totalMedia = 5;
|
||||
final random = Random();
|
||||
|
||||
final whitespaceRE = RegExp(r"(?! )\s+| \s+");
|
||||
// we gotta build all the activities!
|
||||
final jsondata =
|
||||
await root_bundle.rootBundle.loadString('assets/exercises.json');
|
||||
@ -72,9 +72,12 @@ Future<void> seedDb(AppDatabase database) async {
|
||||
}
|
||||
|
||||
Map<Symbol, Value> payload = {
|
||||
Symbol('title'): Value<String>(exercise['name']),
|
||||
Symbol('description'):
|
||||
Value<String>(json.encode(exercise['instructions'])),
|
||||
Symbol('title'): Value<String>(
|
||||
exercise['name'].toString().trim().replaceAll(whitespaceRE, " ")),
|
||||
Symbol('description'): Value<String>(json.encode(exercise['instructions']
|
||||
.toString()
|
||||
.trim()
|
||||
.replaceAll(whitespaceRE, " "))),
|
||||
Symbol('force'): Value<String>(exercise['force'] ?? "")
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user