This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:fizz_buzz_golden/fizz_buzz_page.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter_test/flutter_test.dart'; | |
import 'package:golden_toolkit/golden_toolkit.dart'; | |
void main() { | |
group('fizz_buzz_page', () { | |
Widget page; | |
setUp(() { | |
page = FizzBuzzPage(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:fizz_buzz_golden/widgets/fizz_buzz_button.dart'; | |
import 'package:flutter/material.dart'; | |
class FizzBuzzPage extends StatefulWidget { | |
@override | |
_FizzBuzzPageState createState() => _FizzBuzzPageState(); | |
} | |
class _FizzBuzzPageState extends State<FizzBuzzPage> { | |
var _score = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Flutter", | |
"request": "launch", | |
"type": "dart" | |
}, | |
{ | |
"name": "Flutter: old ios binary", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Flutter", | |
"request": "launch", | |
"type": "dart" | |
}, | |
{ | |
"name": "Flutter: old ios binary", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "Generate Code", | |
"type": "shell", | |
"command": "flutter packages pub run build_runner build --delete-conflicting-outputs" | |
}, | |
{ | |
"label": "Force build iOS simulator", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Flutter", | |
"request": "launch", | |
"type": "dart" | |
}, | |
{ | |
"name": "Flutter: old ios binary", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { memo, useMemo } from 'react'; | |
import { Animated, StyleSheet, View, Button } from 'react-native'; | |
import { Path, Svg } from 'react-native-svg'; | |
const AnimatedPath = Animated.createAnimatedComponent(Path); | |
function ReproduceIssue() { | |
const animatedValue = useMemo(() => new Animated.Value(0), []); | |
return ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://github.com/react-native-community/react-native-svg/issues/951#issuecomment-487986226 | |
import { arc } from 'd3-shape'; | |
import React, { memo, useCallback, useEffect, useMemo, useState } from 'react'; | |
import { Animated, Button, StyleSheet, View } from 'react-native'; | |
import { Circle, G, Path, Svg } from 'react-native-svg'; | |
const AnimatedPath = Animated.createAnimatedComponent(Path); | |
const arcGenerator = arc(); |