diff --git a/lib/gym_set.dart b/lib/gym_set.dart index 53cb4c2..598452c 100644 --- a/lib/gym_set.dart +++ b/lib/gym_set.dart @@ -2,7 +2,7 @@ import 'package:path/path.dart'; import 'package:sqflite/sqflite.dart'; class GymSet { - int? id; // added id for SQLite + int? id; String name; int reps; int weight; @@ -17,16 +17,14 @@ class GymSet { } class GymSetDatabaseHelper { - static final _databaseName = "gym_set_database.db"; - static final _databaseVersion = 1; - - static final table = 'gym_sets'; - - static final columnId = '_id'; - static final columnName = 'name'; - static final columnReps = 'reps'; - static final columnWeight = 'weight'; - static final columnCreated = 'created'; + static const _databaseName = "gym_set_database.db"; + static const _databaseVersion = 1; + static const table = 'gym_sets'; + static const columnId = '_id'; + static const columnName = 'name'; + static const columnReps = 'reps'; + static const columnWeight = 'weight'; + static const columnCreated = 'created'; GymSetDatabaseHelper._privateConstructor(); static final GymSetDatabaseHelper instance =