animating_location_pin 0.1.0 animating_location_pin: ^0.1.0 copied to clipboard
A Flutter package providing Animating Location Pin Widget which can be used while fetching device location.
import 'package:animating_location_pin/animating_location_pin.dart';
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.red,
),
debugShowCheckedModeBanner: false,
home: HomePage(),
);
}
}
class HomePage extends StatefulWidget {
@override
_HomePageState createState() => _HomePageState();
}
class _HomePageState extends State<HomePage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text("Location Pin"),
),
body: Container(
child: Column(
children: <Widget>[
SizedBox(height: 82.0,),
AnimatingLocationPin(),
],
),
),
);
}
}