Advertisement
Hevernooo

Сплэш скрин

Nov 19th, 2024
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 1.25 KB | None | 0 0
  1. import 'package:firebase_messaging/firebase_messaging.dart';
  2. import 'package:flutter/material.dart';
  3. import 'package:plantual_1/firebaseServices/splashServices.dart';
  4. import 'dart:math' as math;
  5.  
  6.  
  7. class splashScreen extends StatefulWidget {
  8.   const splashScreen({super.key});
  9.  
  10.   @override
  11.   State<splashScreen> createState() => _splashScreenState();
  12. }
  13.  
  14. class _splashScreenState extends State<splashScreen> with TickerProviderStateMixin {
  15.  
  16.   splashServices splashscreen = splashServices();
  17.   @override
  18.   void initState() {
  19.     // TODO: implement initState
  20.     super.initState();
  21.     splashscreen.isLogin(context);
  22.   }
  23.   @override
  24.   Widget build(BuildContext context) {
  25.     return Scaffold(
  26.       body: SafeArea(
  27.           child: Column(
  28.             mainAxisAlignment: MainAxisAlignment.center,
  29.             crossAxisAlignment: CrossAxisAlignment.center,
  30.             children: [
  31.               Row(
  32.                 mainAxisAlignment: MainAxisAlignment.center,
  33.                 children: [
  34.                   Container(
  35.                     height: 240,
  36.                     child: Image.asset('assets/output-onlinegiftools (1).gif'),
  37.                   ),
  38.                 ],
  39.               ),
  40.             ],
  41.           )
  42.       ),
  43.     );
  44.   }
  45. }
  46.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement