Showing
3 changed files
with
8 additions
and
6 deletions
| @@ -56,6 +56,8 @@ class Notebook { | @@ -56,6 +56,8 @@ class Notebook { | ||
| 56 | String className; //宴会类型 | 56 | String className; //宴会类型 |
| 57 | String reserveCount; //该客户预订总次数 | 57 | String reserveCount; //该客户预订总次数 |
| 58 | 58 | ||
| 59 | + bool large = false; | ||
| 60 | + | ||
| 59 | // String get tableinfoStr { | 61 | // String get tableinfoStr { |
| 60 | // return name + | 62 | // return name + |
| 61 | // "\n" + | 63 | // "\n" + |
| @@ -37,7 +37,7 @@ class NoteBookItemF extends StatefulWidget { | @@ -37,7 +37,7 @@ class NoteBookItemF extends StatefulWidget { | ||
| 37 | 37 | ||
| 38 | class NoteBookItemFState extends State<NoteBookItemF> | 38 | class NoteBookItemFState extends State<NoteBookItemF> |
| 39 | with SingleTickerProviderStateMixin { | 39 | with SingleTickerProviderStateMixin { |
| 40 | - bool _large = false; | 40 | + // bool _large = false; |
| 41 | List cancelReasonList = []; | 41 | List cancelReasonList = []; |
| 42 | bool isShowTF = false; | 42 | bool isShowTF = false; |
| 43 | // int paddingBottom; | 43 | // int paddingBottom; |
| @@ -109,7 +109,7 @@ class NoteBookItemFState extends State<NoteBookItemF> | @@ -109,7 +109,7 @@ class NoteBookItemFState extends State<NoteBookItemF> | ||
| 109 | return; | 109 | return; |
| 110 | } | 110 | } |
| 111 | setState(() { | 111 | setState(() { |
| 112 | - _large = !_large; | 112 | + widget.notebook.large = !widget.notebook.large; |
| 113 | }); | 113 | }); |
| 114 | } | 114 | } |
| 115 | 115 | ||
| @@ -695,7 +695,7 @@ class NoteBookItemFState extends State<NoteBookItemF> | @@ -695,7 +695,7 @@ class NoteBookItemFState extends State<NoteBookItemF> | ||
| 695 | vsync: this, | 695 | vsync: this, |
| 696 | child: InkWell( | 696 | child: InkWell( |
| 697 | onTap: () => _updateSize(canDo), | 697 | onTap: () => _updateSize(canDo), |
| 698 | - child: _large | 698 | + child: widget.notebook.large |
| 699 | ? Stack( | 699 | ? Stack( |
| 700 | children: [ | 700 | children: [ |
| 701 | Container( | 701 | Container( |
| @@ -49,7 +49,7 @@ class NoteBookItemSimple extends StatefulWidget { | @@ -49,7 +49,7 @@ class NoteBookItemSimple extends StatefulWidget { | ||
| 49 | 49 | ||
| 50 | class NoteBookItemSimpleState extends State<NoteBookItemSimple> | 50 | class NoteBookItemSimpleState extends State<NoteBookItemSimple> |
| 51 | with SingleTickerProviderStateMixin { | 51 | with SingleTickerProviderStateMixin { |
| 52 | - bool _large = false; | 52 | + // bool _large = false; |
| 53 | List cancelReasonList = []; | 53 | List cancelReasonList = []; |
| 54 | bool isShowTF = false; | 54 | bool isShowTF = false; |
| 55 | // int paddingBottom; | 55 | // int paddingBottom; |
| @@ -121,7 +121,7 @@ class NoteBookItemSimpleState extends State<NoteBookItemSimple> | @@ -121,7 +121,7 @@ class NoteBookItemSimpleState extends State<NoteBookItemSimple> | ||
| 121 | return; | 121 | return; |
| 122 | } | 122 | } |
| 123 | setState(() { | 123 | setState(() { |
| 124 | - _large = !_large; | 124 | + widget.notebook.large = !widget.notebook.large; |
| 125 | }); | 125 | }); |
| 126 | } | 126 | } |
| 127 | 127 | ||
| @@ -676,7 +676,7 @@ class NoteBookItemSimpleState extends State<NoteBookItemSimple> | @@ -676,7 +676,7 @@ class NoteBookItemSimpleState extends State<NoteBookItemSimple> | ||
| 676 | vsync: this, | 676 | vsync: this, |
| 677 | child: InkWell( | 677 | child: InkWell( |
| 678 | onTap: () => _updateSize(canDo), | 678 | onTap: () => _updateSize(canDo), |
| 679 | - child: _large | 679 | + child: widget.notebook.large |
| 680 | ? Stack( | 680 | ? Stack( |
| 681 | children: [ | 681 | children: [ |
| 682 | Container( | 682 | Container( |
-
Please register or login to post a comment