Commit 5c81897

derdilla <82763757+NobodyForNothing@users.noreply.github.com>
2023-12-26 10:12:53
improve tests and documentation
Signed-off-by: derdilla <82763757+NobodyForNothing@users.noreply.github.com>
1 parent ef4607c
Changed files (2)
lib
components
test
lib/components/dialoges/fullscreen_dialoge.dart
@@ -25,7 +25,7 @@ class FullscreenDialoge extends StatelessWidget {
   ///
   /// Usually `localizations.btnSave`
   ///
-  /// Setting the text to null will remove the button.
+  /// Setting the text to null will hide the button entirely.
   final String? actionButtonText;
 
   /// Action on press of the button.
test/model/json_serialization_test.dart
@@ -92,6 +92,7 @@ void main() {
         startWithAddMeasurementPage: false,
         useLegacyList: false,
         horizontalGraphLines: [HorizontalGraphLine(Colors.blue, 1230)],
+        bottomAppBars: true
       );
       final fromJson = Settings.fromJson(initial.toJson());
 
@@ -117,6 +118,7 @@ void main() {
       expect(initial.horizontalGraphLines.first.color.value, fromJson.horizontalGraphLines.first.color.value);
       expect(initial.horizontalGraphLines.first.height, fromJson.horizontalGraphLines.first.height);
       expect(initial.needlePinBarWidth, fromJson.needlePinBarWidth);
+      expect(initial.bottomAppBars, fromJson.bottomAppBars);
 
       expect(initial.toJson(), fromJson.toJson());
     });