This file contains 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(new MyApp()); | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return new MaterialApp( | |
title: 'Flutter Demo', | |
theme: new ThemeData( |
This file contains 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
colorAnimation = ColorTween(begin: Colors.blue, end: Colors.yellow).animate(CurvedAnimation(parent: controller, curve: Curves.bounceOut)); |
This file contains 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:stream_chat_flutter/stream_chat_flutter.dart'; | |
void main() async { | |
WidgetsFlutterBinding.ensureInitialized(); | |
final client = StreamChatClient( | |
'YOUR_API_KEY', | |
logLevel: Level.INFO, | |
); |
This file contains 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
library chess_board; | |
import 'dart:async'; | |
import 'package:chess_vectors_flutter/chess_vectors_flutter.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:chess/chess.dart' as chess; | |
typedef Null MoveCallback(String moveNotation); | |
typedef Null CheckMateCallback(String winColor); |
This file contains 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:async'; | |
import 'dart:math'; | |
import 'dart:ui'; | |
import 'package:flutter/material.dart'; | |
import 'package:stream_chat_flutter/stream_chat_flutter.dart'; | |
import 'package:stream_chat_localizations/stream_chat_localizations.dart'; | |
import 'package:ezanimation/ezanimation.dart'; | |
void main() async { |
This file contains 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/cupertino.dart'; | |
import 'package:flutter/foundation.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:stream_chat_flutter/stream_chat_flutter.dart'; | |
import 'package:stream_chat_localizations/stream_chat_localizations.dart'; | |
import 'package:flutter_chess_board/flutter_chess_board.dart'; | |
void main() async { | |
WidgetsFlutterBinding.ensureInitialized(); |
This file contains 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
class GetLocationPage extends StatefulWidget { | |
@override | |
_GetLocationPageState createState() => _GetLocationPageState(); | |
} | |
class _GetLocationPageState extends State<GetLocationPage> { | |
var location = new Location(); | |
Map<String, double> userLocation; |
This file contains 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
class GoogleMapsDemo extends StatefulWidget { | |
@override | |
_GoogleMapsDemoState createState() => _GoogleMapsDemoState(); | |
} | |
class _GoogleMapsDemoState extends State<GoogleMapsDemo> { | |
GoogleMapController mapController; | |
Location location = Location(); | |
Marker marker; |
This file contains 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
class _DiamondBorder extends ShapeBorder { | |
const _DiamondBorder(); | |
@override | |
EdgeInsetsGeometry get dimensions { | |
return const EdgeInsets.only(); | |
} | |
@override | |
Path getInnerPath(Rect rect, { TextDirection textDirection }) { |
This file contains 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
class MyHomePage extends StatefulWidget { | |
@override | |
_MyHomePageState createState() => _MyHomePageState(); | |
} | |
class _MyHomePageState extends State<MyHomePage> { | |
double x = 0; | |
double y = 0; | |
double z = 0; |
NewerOlder