Custom Functions | FlutterFlow University

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ส.ค. 2024
  • In this video we explore how to build and bind custom functions in FlutterFlow.
    Ready to try FlutterFlow for yourself? Start building your app today with a free trial 👉 www.flutterflow.com
    Follow us on Twitter 👉 / flutterflow
    --------------
    FlutterFlow is a low-code builder for native apps, bringing design and development into one tool. With drag-and-drop functionality, you can build pixel-perfect UIs and easily connect your app to live data via Firebase or APIs. Plus, you can add advanced features like push notifications, payments, animations, and more. Whether you build your own custom widgets or write custom code, FlutterFlow makes it easy to bring your app ideas to life.
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 22

  • @airhead2741
    @airhead2741 10 หลายเดือนก่อน +6

    Top tier tutorial, let us know more about these possibilities.

  • @alea621
    @alea621 9 หลายเดือนก่อน

    thank you for this GREAT work you do!!! I love your patience in your videos

  • @sergeyauts
    @sergeyauts 8 หลายเดือนก่อน

    Wow! Low code combined with AI is awesome. Game changing.

  • @genixprodesign
    @genixprodesign 10 หลายเดือนก่อน +1

    Great Tutorial ❤ Bang on point, and great narration!! ❤❤

    • @dr.anonymous4867
      @dr.anonymous4867 10 หลายเดือนก่อน

      Hello genix can you help me in creating a fully functional custom widget please help me out I got stucked

  • @developerzull
    @developerzull 6 หลายเดือนก่อน

    Very useful.

  • @user-ef7ql5jw3b
    @user-ef7ql5jw3b 14 วันที่ผ่านมา

    I have problems with all "dart" imports. "Target of URI doesn't exist:" in each import string. What I need to do?

  • @shankaroffical3671
    @shankaroffical3671 6 หลายเดือนก่อน

    one question, when i use firestore methods like update or read a document with my custom functions, it won't allow me to edit the function type like
    Future myFunction(), what should i do , other than inbuild actions, because that's not flexible to use my comfortablity

  • @krishnasam6198
    @krishnasam6198 10 หลายเดือนก่อน

    I have one scenario , where if i deactivate user through admin app..the user app should logoff.and not able to signun untill if they are activated again..what is the do's for tht?

  • @Dimi-cv6qr
    @Dimi-cv6qr 10 หลายเดือนก่อน

    Thank You for the great FlutterFlow University series!
    One question: You do not check if the input in this case is nummeric or not? It is not necessary?

    • @FlutterFlow
      @FlutterFlow  10 หลายเดือนก่อน +2

      Great question! We add a helper toString() in a lot of places to save you that step.

  • @dr.anonymous4867
    @dr.anonymous4867 10 หลายเดือนก่อน

    Can anyone help me creating a fully functional custom widget in flutterflow

  • @hmbv0202
    @hmbv0202 10 หลายเดือนก่อน

    Why on Test Mode my page turn darker?

  • @ta_helado
    @ta_helado 10 หลายเดือนก่อน +1

    cant we use a dependency?

    • @FlutterFlow
      @FlutterFlow  10 หลายเดือนก่อน

      You can use the dependancies that are there but not other pub.dev packages. If you need those use Custom Actions.

  • @HREproductions-lk9rn
    @HREproductions-lk9rn 4 หลายเดือนก่อน

    At the last part of the video 6:30 my variables menu doesn't have widgets.

    • @cesarsfalcao
      @cesarsfalcao 6 วันที่ผ่านมา

      Add the text field and its parameters will be available

  • @victorbecerra4659
    @victorbecerra4659 4 หลายเดือนก่อน

    Is there any way to delete a function that i won't use anymore ?

  • @David_tommy
    @David_tommy 10 หลายเดือนก่อน

    Can you please make a video an updated video on revenue cat, still trying to understand the concept😢
    No offense, the last person that made a video on this, on your channel, was as if he just work up from sleep and started recording 😭😭😭 no offense

  • @face2facefriend-official
    @face2facefriend-official 4 หลายเดือนก่อน

    Hi, my friend, could you please help me fix my Flutter custom action to get the video duration?
    // Automatic FlutterFlow imports
    import '/backend/backend.dart';
    import '/flutter_flow/flutter_flow_theme.dart';
    import '/flutter_flow/flutter_flow_util.dart';
    import '/custom_code/actions/index.dart'; // Imports other custom actions
    import '/flutter_flow/custom_functions.dart'; // Imports custom functions
    import 'package:flutter/material.dart';
    // Begin custom action code
    // DO NOT REMOVE OR MODIFY THE CODE ABOVE!
    import 'dart:io';
    import 'package:flutter_ffmpeg/flutter_ffmpeg.dart';
    Future videoInformation(String video) async {
    // get the media duration after uploading it from library or storage and return string in milliseconds
    // Import necessary packages
    // Create a function to get the media duration
    Future videoInformation(String video) async {
    // Create an instance of FlutterFFmpeg
    final FlutterFFmpeg _flutterFFmpeg = FlutterFFmpeg();
    // Get the media information using FFmpeg
    final int rc = await _flutterFFmpeg.execute("-i $video");
    // Check if FFmpeg was able to get the media information
    if (rc == 0) {
    // Get the duration of the media
    final String duration = _flutterFFmpeg.getLastCommandOutput();
    // Extract the duration from the output
    final RegExp regex = RegExp(r"Duration: (\d{2}):(\d{2}):(\d{2}).(\d{2})");
    final Match match = regex.firstMatch(duration);
    // Calculate the duration in milliseconds
    final int hours = int.parse(match.group(1));
    final int minutes = int.parse(match.group(2));
    final int seconds = int.parse(match.group(3));
    final int milliseconds = int.parse(match.group(4));
    final int durationInMilliseconds = ((hours * 3600) + (minutes * 60) + seconds) * 1000 + milliseconds;
    // Return the duration in milliseconds as a string
    return durationInMilliseconds.toString();
    } else {
    // Return an error message if FFmpeg was not able to get the media information
    return "Error getting media information";
    }}
    {
    }
    }