瀏覽代碼

Added a comment

ashilkn 2 年之前
父節點
當前提交
57f689abb1
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      lib/ui/components/menu_item_widget/menu_item_widget.dart

+ 4 - 0
lib/ui/components/menu_item_widget/menu_item_widget.dart

@@ -54,6 +54,10 @@ class MenuItemWidget extends StatefulWidget {
 
 
   final bool surfaceExecutionStates;
   final bool surfaceExecutionStates;
 
 
+  ///To show success state even when execution time < debouce time, set this
+  ///flag to true. If the loading state needs to be shown and success state not,
+  ///set the showOnlyLoadingState flag to true, setting this flag to false won't
+  ///help.
   final bool alwaysShowSuccessState;
   final bool alwaysShowSuccessState;
 
 
   const MenuItemWidget({
   const MenuItemWidget({