Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mono0926 committed Apr 28, 2022
1 parent 620147f commit 4de0662
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/adaptive_dialog.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:adaptive_dialog/adaptive_dialog.dart';
import 'package:flutter/material.dart';

/// Manage common adaptive_dialog settings, etc.
class AdaptiveDialog {
AdaptiveDialog._();
static AdaptiveDialog? _instance;
Expand All @@ -13,6 +14,7 @@ class AdaptiveDialog {
AdaptiveStyle get defaultStyle => _defaultStyle;
AdaptiveDialogMacOSConfiguration get macOS => _macOs;

/// Update default configuration
// ignore: use_setters_to_change_properties
void updateConfiguration({
AdaptiveStyle? defaultStyle,
Expand All @@ -23,10 +25,12 @@ class AdaptiveDialog {
}
}

/// Manage common macOS settings
class AdaptiveDialogMacOSConfiguration {
AdaptiveDialogMacOSConfiguration({
this.applicationIcon,
});

/// Used for macOS style dialog
final Widget? applicationIcon;
}

0 comments on commit 4de0662

Please sign in to comment.