Guys can you help me replacing the picture background (bg.jpg) with a video in mp4? any Flutter professional please? import ‘package:video_player/video_player.dart’; class Login extends StatelessWidget { static const your_client_id = ‘000000000000’; final FirebaseAuth _auth = FirebaseAuth.instance; static const your_redirect_url = ‘https://xxxxxxx.firebaseapp.com/__/auth/handler’; final GlobalKey<ScaffoldState> _scaffoldKey = new GlobalKey<ScaffoldState>(); @override Widget build(BuildContext context) { return WillPopScope( child: ..
Category : dart
I defined a variable isSelected of type bool in the contacts_service.dart file (which I imported from here). I edited it myself, and the lines on which I did my editing were – 159, 186, 195, 239 in contacts_service.dart. Now I am using this class in my page – create_group.dart, and using the value of that ..
I could not run "flutter create projectName" in my terminal. It only shows this error. I need help. I’m stuck and don’t know what to do to run. Source: Android..
when i add admob to my app, i got this messages on my console, it doesn’t stop and it’s a little bit annoying. Someone can explain me why ? is it serious ? My flutter doctor result : Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel beta, 1.26.0-17.6.pre, on Microsoft ..
I am creating an UI which contains 5-6 polygons on the page. I inserted 2 of them. But when i try to move them using Align(), its not moving at all. Here is the code of mine: import ‘package:flutter/material.dart’; import ‘package:online_schedule/bottomRightCorner.dart’; // import ‘package:online_schedule/clipShadowPath.dart’; import ‘bottomRightCorner.dart’; import ‘middle.dart’; void main() => runApp(MaterialApp(home: MyApp())); class MyApp ..
I’m currently using a firebase messaging cloud to push notification for my flutter app. I’m trying to make a custom notification sound for the push notification. I believe that it can be done by putting "sound: alert.mp3". Source: Android..
I want to access the flutter activity’s decorView in my native code. I created a plugin which give me access to the apis in the android native code. One of the api is public void setActivity(Activity activity){ Log.d("ActivityFromFlutter", activity.getLocalClassName()); … … } I am using it like this in my flutter plugin: private void setupPlugin(Context ..
How would you return a Future widget into a StatelessWidget? I’ve tried something myself but it gives the error: "type ‘Future’ is not a subtype of type ‘Widget?’". Here is the code recieveMessage() async { var x = ‘Test’; return Text(x); } class Test extends StatelessWidget { @override Widget build(BuildContext context) { return Container( child: ..
I compiled my code, and received this error. My contacts are not empty (as you can see in the image) still it is giving me an error on being called as null. One important point too. As you can see in my UI, the length or count of my contacts, i.e. 3 is being displayed, ..
if you got above error try to bellow steps. it is work for me. flutter channel dev flutter upgrade flutter config –android-studio-dir="C:Program FilesAndroidAndroid Studio" flutter doctor -v Source: Android..
Recent Comments