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 'dart:math'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/scheduler.dart'; | |
| void main() { | |
| runApp(MaterialApp(home: DemoPage(), debugShowCheckedModeBanner: false)); | |
| } | |
| class DemoPage extends StatefulWidget { |
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 'dart:convert'; | |
| import 'dart:math'; | |
| import 'dart:ui' as ui; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/scheduler.dart'; | |
| /// A function type that defines how control points for a Bézier curve are generated. | |
| /// | |
| /// This function takes a list of [Offset] points and an index and returns a tuple of two [Offset] |
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 'dart:math'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/scheduler.dart'; | |
| void main() => runApp(const MaterialApp(home: Foo())); | |
| class Foo extends StatefulWidget { | |
| const Foo({super.key}); | |
| @override |
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 'dart:math'; | |
| import 'dart:ui'; | |
| import 'package:collection/collection.dart'; | |
| import 'package:flutter/rendering.dart'; | |
| typedef PaintSegmentCallback = void Function(Canvas canvas, Size size); | |
| const kSequenceSeparator = _SeparatingOffset(); |
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 'dart:math'; | |
| import 'dart:ui' as ui; | |
| import 'package:flutter/material.dart'; | |
| import 'package:collection/collection.dart'; | |
| void main() => runApp(MaterialApp(home: Scaffold(body: Foo()))); | |
| class Foo extends StatefulWidget { | |
| @override |
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 'dart:math'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:collection/collection.dart'; | |
| void main() => runApp(MaterialApp(home: Scaffold(body: Foo()))); | |
| class Foo extends StatefulWidget { | |
| @override | |
| State<Foo> createState() => _FooState(); |
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 'dart:math'; | |
| import 'dart:ui' as ui; | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:flutter/material.dart'; | |
| typedef PathBuilder = ui.Path Function(ui.Rect bounds, double phase); | |
| typedef OnPaintFrame = void Function(Canvas canvas, ui.Rect bounds, double phase); | |
| /// Simple [OutlinedBorder] implementation. |
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:flutter/material.dart'; | |
| import 'package:flutter/scheduler.dart'; | |
| void main() { | |
| runApp(const MaterialApp( | |
| debugShowCheckedModeBanner: false, | |
| home: Scaffold(body: DebugPageTutorial()), | |
| )); | |
| } |
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 'dart:math'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:flutter/physics.dart'; | |
| main() { | |
| runApp(MaterialApp(home: Scaffold(body: ColorWheel()))); | |
| } | |
| typedef RangeRecord = ({int index, double begin, double end, double turn}); |
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 'dart:convert'; | |
| import 'dart:io'; | |
| import 'package:flutter/foundation.dart'; | |
| import 'package:http/http.dart' as http; | |
| parseJSON() async { | |
| final json = JsonCodec.withReviver((key, value) { | |
| // print(' -- reviver -- key: $key, value: $value'); | |
| return switch (value) { |
NewerOlder