|
1 | 1 | using System.Collections.Generic;
|
2 | 2 | using RSG;
|
3 | 3 | using Unity.UIWidgets.foundation;
|
4 |
| -using Unity.UIWidgets.gestures; |
5 | 4 | using Unity.UIWidgets.material;
|
6 | 5 | using Unity.UIWidgets.painting;
|
7 | 6 | using Unity.UIWidgets.rendering;
|
@@ -171,21 +170,10 @@ public class MaterialAppBarWidgetState : State<MaterialAppBarWidget> {
|
171 | 170 | GlobalKey<ScaffoldState> _scaffoldKey = GlobalKey<ScaffoldState>.key();
|
172 | 171 |
|
173 | 172 | VoidCallback _showBottomSheetCallback;
|
174 |
| - |
175 |
| - TapGestureRecognizer _tapRecognizer; |
176 |
| - HoverRecognizer _hoverRecognizer; |
177 | 173 |
|
178 | 174 | public override void initState() {
|
179 | 175 | base.initState();
|
180 | 176 | this._showBottomSheetCallback = this._showBottomSheet;
|
181 |
| - |
182 |
| - this._tapRecognizer = new TapGestureRecognizer(); |
183 |
| - this._tapRecognizer.onTap = () => { |
184 |
| - Debug.Log("Tap"); |
185 |
| - }; |
186 |
| - this._hoverRecognizer = new HoverRecognizer(); |
187 |
| - this._hoverRecognizer.OnPointerEnter = (evt) => { Debug.Log("Pointer Enter"); }; |
188 |
| - this._hoverRecognizer.OnPointerLeave = () => { Debug.Log("Pointer Leave"); }; |
189 | 177 | }
|
190 | 178 |
|
191 | 179 | void _showBottomSheet() {
|
@@ -224,25 +212,7 @@ public override Widget build(BuildContext context) {
|
224 | 212 | return new Scaffold(
|
225 | 213 | key: this._scaffoldKey,
|
226 | 214 | appBar: new AppBar(
|
227 |
| - title: new RichText( |
228 |
| - text: new TextSpan( |
229 |
| - text: "Can you ", |
230 |
| - style: new TextStyle(color: Colors.black), |
231 |
| - children: new List<TextSpan>() { |
232 |
| - new TextSpan( |
233 |
| - text: "find the", |
234 |
| - style: new TextStyle( |
235 |
| - color: Colors.green, |
236 |
| - decoration: TextDecoration.underline |
237 |
| - ), |
238 |
| - recognizer: this._tapRecognizer, |
239 |
| - hoverRecognizer: this._hoverRecognizer |
240 |
| - ), |
241 |
| - new TextSpan( |
242 |
| - text: " secret?" |
243 |
| - ) |
244 |
| - } |
245 |
| - )), |
| 215 | + title: new Text("Basic AppBar"), |
246 | 216 | actions: new List<Widget> {
|
247 | 217 | new IconButton(
|
248 | 218 | icon: new Icon(Choice.choices[0].icon),
|
@@ -347,8 +317,7 @@ public override Widget build(BuildContext context) {
|
347 | 317 | children: new List<Widget> {
|
348 | 318 | new Icon(this.choice.icon, size: 128.0f, color: textStyle.color),
|
349 | 319 | new RaisedButton(
|
350 |
| - //child: new Text(this.choice.title, style: textStyle), |
351 |
| - child: new Icon(Unity.UIWidgets.material.Icons.pool), |
| 320 | + child: new Text(this.choice.title, style: textStyle), |
352 | 321 | onPressed: () => {
|
353 | 322 | SnackBar snackBar = new SnackBar(
|
354 | 323 | content: new Text(this.choice.title + " is chosen !"),
|
|
0 commit comments