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'; | |
| void main() { | |
| runApp(MaterialApp(home: ShakeExample())); | |
| } | |
| class ShakeExample extends StatelessWidget { | |
| final ShakeController _shakeController = ShakeController(); |
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'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return const MaterialApp( |
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'; | |
| void main() { | |
| final superhero = Random().nextBool() ? "Superhero" : null; | |
| if (superhero != null) { | |
| print("Получили супергероя из избранного"); | |
| changeState("Success"); | |
| } else { | |
| print("В избранном нет супергероя"); | |
| changeState("Loading"); |
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:flutter/material.dart'; | |
| void main() => runApp(const MyApp()); | |
| class MyApp extends StatelessWidget { | |
| const MyApp({Key? key}) : super(key: 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 'package:flutter/material.dart'; | |
| abstract class AnimatedWidget<T> extends StatefulWidget { | |
| AnimatedWidget({Key? key}) : super(key: key); | |
| @override | |
| State<AnimatedWidget<T>> createState() => _AnimatedWidgetState<T>(); | |
| Widget buildAnimatedWidget(final T value); |
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'; | |
| main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({Key? key}) : super(key: key); |
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:equatable/equatable.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:memogenerator/data/migration/migration_helper.dart'; | |
| import 'package:memogenerator/presentation/main/main_page.dart'; | |
| void main() async { | |
| EquatableConfig.stringify = true; | |
| runApp(MyApp()); | |
| } |
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'; | |
| const Color darkBlue = Color.fromARGB(255, 18, 32, 47); | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| @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 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(MyApp()); | |
| } | |
| class MyApp extends StatefulWidget { | |
| @override | |
| _MyAppState createState() => _MyAppState(); | |
| } |
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
| <template name="js" value="import 'package:json_annotation/json_annotation.dart'; part '$class_name_snake_case$.g.dart'; @JsonSerializable(fieldRename: FieldRename.snake) class $ClassName$ { factory $ClassName$.fromJson(final Map<String, dynamic> json) => _$$$ClassName$FromJson(json); Map<String, dynamic> toJson() => _$$$ClassName$ToJson(this); }" description="Create new JsonSerializable model class" toReformat="false" toShortenFQNames="true"> | |
| <variable name="ClassName" expression="" defaultValue="" alwaysStopAt="true" /> | |
| <variable name="class_name_snake_case" expression="snakeCase(ClassName)" defaultValue="" alwaysStopAt="false" /> | |
| <context> | |
| <option name="DART_TOPLEVEL" value="true" /> | |
| </context> | |
| </template> |
NewerOlder