Showing
1 changed file
with
23 additions
and
0 deletions
@@ -12,6 +12,29 @@ assignees: jonataslaw | @@ -12,6 +12,29 @@ assignees: jonataslaw | ||
12 | **Describe the bug** | 12 | **Describe the bug** |
13 | A clear and concise description of what the bug is. | 13 | A clear and concise description of what the bug is. |
14 | 14 | ||
15 | +**Reproduction code | ||
16 | +NOTE: THIS IS MANDATORY, IF YOUR ISSUE DOES NOT CONTAIN IT, IT WILL BE CLOSED PRELIMINARY)** | ||
17 | + | ||
18 | +example: | ||
19 | + | ||
20 | +```dart | ||
21 | +void main() => runApp(MaterialApp(home: Home())); | ||
22 | + | ||
23 | +class Home extends StatelessWidget { | ||
24 | + final count = 0.obs; | ||
25 | + @override | ||
26 | + Widget build(context) => Scaffold( | ||
27 | + appBar: AppBar(title: Text("counter")), | ||
28 | + body: Center( | ||
29 | + child: Obx(() => Text("$count")), | ||
30 | + ), | ||
31 | + floatingActionButton: FloatingActionButton( | ||
32 | + child: Icon(Icons.add), | ||
33 | + onPressed: () => count.value++, | ||
34 | + )); | ||
35 | +} | ||
36 | +``` | ||
37 | + | ||
15 | **To Reproduce** | 38 | **To Reproduce** |
16 | Steps to reproduce the behavior: | 39 | Steps to reproduce the behavior: |
17 | 1. Go to '...' | 40 | 1. Go to '...' |
-
Please register or login to post a comment