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:lottie/lottie.dart'; | |
class SplashScreen extends StatelessWidget { | |
const SplashScreen({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return Center( | |
// we will add Lottie animations here |
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:lottie/lottie.dart'; | |
class SplashScreen extends StatelessWidget { | |
const SplashScreen({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return Center( | |
// we will add Lottie animations here |
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
Widget build(BuildContext context) { | |
return Center( | |
// Adding a Lottie animation via Network URL | |
child: Lottie.network( | |
"https://lottie.host/bf81e742-c5ab-4a9d-82b3-826d17556baa/U5Qsu9gaZM.json", | |
fit: BoxFit.cover, | |
width: 300, | |
height: 300, | |
), | |
); |
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:lottie_flutter/splash_screen.dart'; | |
void main() { | |
runApp(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); |
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'; | |
class HomeScreenPage extends StatelessWidget { | |
const HomeScreenPage({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return const Scaffold( | |
body: Center( | |
child: Text( |
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 'package:flutter/material.dart'; | |
import 'package:lottie/lottie.dart'; | |
import 'package:lottie_flutter/home_screen.dart'; | |
class SplashScreen extends StatefulWidget { | |
const SplashScreen({super.key}); | |
@override |
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:lottie/lottie.dart'; | |
class SplashScreen extends StatelessWidget { | |
const SplashScreen({super.key}); | |
@override | |
Widget build(BuildContext context) { | |
return Center( | |
child: Lottie.asset( |
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
rules_version = '2'; | |
service cloud.firestore { | |
match /databases/{database}/documents { | |
function hasBasicSubs() { | |
return request.auth.token.stripeRole == "basic"; | |
} | |
function hasPremiumSubs() { | |
return request.auth.token.stripeRole == "premium"; | |
} |
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(const MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
const MyApp({super.key}); | |
@override |
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:qr_flutter/qr_flutter.dart'; | |
class QRImage extends StatelessWidget { | |
const QRImage(this.controller, {super.key}); | |
final TextEditingController controller; | |
@override | |
Widget build(BuildContext context) { |
NewerOlder