import 'package:fmassive/database.dart'; import 'package:moor/moor.dart'; Setting defaultSettings = Setting( alarm: true, vibrate: true, sound: null, notify: true, images: true, showUnit: true, lightColor: null, darkColor: null, steps: true, date: 'DD/MM/YYYY', showDate: true, theme: 'light', showSets: true, noSound: false, backup: false, ); class Settings extends Table { BoolColumn get alarm => boolean()(); BoolColumn get vibrate => boolean()(); TextColumn get sound => text().nullable()(); BoolColumn get notify => boolean()(); BoolColumn get images => boolean()(); BoolColumn get showUnit => boolean()(); TextColumn get lightColor => text().nullable()(); TextColumn get darkColor => text().nullable()(); BoolColumn get steps => boolean()(); TextColumn get date => text()(); BoolColumn get showDate => boolean()(); TextColumn get theme => text()(); BoolColumn get showSets => boolean()(); BoolColumn get noSound => boolean()(); BoolColumn get backup => boolean()(); }