How to make an AI that replies to your Facebook comment like a human

You want to create an AI agent for your Facebook page, or you already built one, but you don’t want to receive “ I want to talk to a real human " ? You're in the right place.IntroductionWhen customers say that, they're not really wanting to talk to a human; what they're currently really saying is that they would like to be understood. In this article we’ll see different cases when a user can feel not understood and what you can do to avoid that. You can implement all of these points with YourSelf or using Bedones Moderator, which already includes all of these presets.Response lengthWhen you’re an AI agent, provide a response that is not too long; the customer, before reading it, feels like it’s inappropriate. For example, if a customer asks for your store address and receives a paragraph, even if this paragraph contains your address, your customer will think this paragraph is a copy-paste or IA-generated and there’s no reason for them to provide so much effort to read that and would simply say nothing or ask for a human.Company and product understandingAll information about your product or your company is not mentioned in your Facebook post, so before letting IA reply to your customer, always ensure that IA has a context about your company, the product, and your process relative to this product. You can start to reply to your customer by yourself and save the most common questions and give them to your IA agent.Human agent / IA agent conflictSometimes you’ll reply to your customer by yourself; always ensure that you’ve deactivated the IA reply or that the service you're using (like Bedones Moderator) is set up to not reply after you and make the user confused.Objective replyThis is more of a marketing point than an IA-related point, but when you provide a reply to the customer, always, when it’s possible, your reply should contain the next action of your customer. For example, instead of “ yes we have this size. ” you or your IA agent “ Yes we have this size. Would you know how to order it now ?”. Otherwise, the user will have to think by themselves about the next step and will certainly bring the conversation in the direction you don’t train your IA to reply.Escalate when necessaryWhen a human talks to a human, he knows when a question is out of his competence or knowledge, and naturally he can ask his interlocutor to wait or simply ask someone to reply. The same way you give to your IA agent your knowledge to reply, you should give him the context where she should not reply or redirect the customer to appropriate service; otherwise, your agent will try to generate a reply they don’t have the competence to generate, and the end customer will feel it and will attempt to change the interlocutorConclusionIn conclusion, always when you set up an IA agent, when you test it, ask yourself, “ Does the IA reply (or not) short and objectively, and if there is a next action, does the response provide it? ”. Subscribe for more tips

ai

claude

chatgpt

agentic-ai

Tailwind Copilot | Lazy to write font-size, font-weight… ever and ever ?

Tailwind Copilot | Lazy to write font-size, font-weight… ever and ever ?How to sync Figma props with your tailwind config and generate classesIntroductionToday, there is a lot of tool that pretend to be able to generate a source code from a Figma design. Because these tools are unable to understand context, they produce generally a source code that will need a lot of hours for developers to analyze, refactor and fix.Generic Tailwind Generator Figma PluginInstead of tried to replace you, Generic Tailwind Generator will be going to sync to your tailwind config and generate only property that don’t depend on application, feature or architecture context. For example, when a text's font-size is 12px, this is a text-xs tailwind class. You can prefix it with lg: prefix if you want this font size only on mobile, but if the tool tried to do it for you, you’ll certainly have to update this code.1. Expose your local Tailwind ConfigGo into the folder of your project that contain your tailwind.config.ts or tailwind.config.js and run the following command:npx generic-css-cli2. Run plugin in FigmaIn Figma file of your project, make a right click thenPlugins → Manage Plugins Search for Generic Tailwind GeneratorThe press Run blue button. You’ll now be able to see your project folder’s name.3. Select element in design to see his propsOn the left pane you have tailwind classes. In the right pane, you have the ability to rename (optional) and add theme props in your tailwind project. The renamed theme variables are automatically reflected in classes.Stay safe. GoodbyeTailwind Copilot | Lazy to write font-size, font-weight… ever and ever ? was originally published in Towards Dev on Medium, where people are continuing the conversation by highlighting and responding to this story.

css

html

react

tailwind-css

Real time doesn’t mean socket

Understand the difference between real-time and push notificationsIntroductionAs a web or mobile developer, all of us have already searched: “How to do a real-time with Flutter, Node.js, React…” Most of the time, you’ll get a tutorial that explains how to do this with a socket or a service where you have to pay and install their SDK in your app.These solutions are not bad, but they’re certainly not what your app needs.In this article, we will explore a different solution to do real-time in your app and its use cases.Real time or notifications only ?We can resume this article in one question: Does the user interact with other user via my app, or does the user have to be notified by the actions of other user ?1. Real time 😅In the first case your app is certainly in front of user, and he waits for the response of other user, like multiplayer game for example. In this case, you need to establish the real time communication with websocket/socket to make information transfer fast as possible.2. Push NotificationsIn the second case, your app is certainly close or in background by the phone (who itself is maybe closed). Note that in this case, you simply NOT MAKE A REAL CHANEL.In Fact, when you’re building an app with socket during test you get a new message, but it’s just because your app is in the foreground during your tests. But this app will never work in production because the operating system will close your channel if the user close your app, put it in background for long time or if the user simply locks their phone because if all the phone’s app do that the battery will drop in minute.This is where Push Notification come in the game. Every platform Google for Android, Apple, Microsoft) provide a single service that make a unique channel with user’s phone and that you can call to send notification to your user. So we have:Firebase Cloud Messaging (FCM) for all Android, Web and iOS devicesApple Push Notification service (APNs) for every Apple devicesWindows Push Notification Services (WNS) For all Windows devicesConclusionYou have to choose carefully what kind of channel you have to set up between your users, if you choose socket make sure that user need real time only when your app is in foreground (open and in front of user) else if information make 5s before come to the user it’s certainly not a problem for him, so you need to use a push notifications service.

web-development

mobile-app-development

Record a coding session without wasting time in editing.

IntroductionHave you ever wanted to share how you build a website in video? The default method is to make a video screen recording and then edit the video to make it shorter. But nobody want to edit 8 hours of video to create short video of 2 or 4 minutes on every coding session.Try the difference, Try Frame RecorderFrame recorder is a tools build for recording every change in a browser as a frame and make a video at the end of the video. because only change is record, Frame recorder save a time that you should pass on edit of video secondly, it using less resource than traditional Screen Recording.SetupBrowser setupFirst to use Frame Recorder, install web extension with this link you should get something like this after installation.Image of Frame Recorder for FirefoxDesktop setupFinally, install desktop version of Frame Recorder depending on your OS with this link After installation finish you should get something like thisImage of Frame recorder for Mac OSNow in the browser you should see Start Recording in the popup dialog. You can now start your local development and start recording with this button.To stop recording, just open browser extension and click on Stop recording. You can now go into Frame Recorder Desktop to see every frames of recording session. You can exclude some frame by click on to toggle it or/and export video.ConclusionFrame recording is a new tools, many functionality will arrive soon, like ability to add audio before export, choice export format, reconciliation after hard reload of browser. Follow author on Twitter to not miss update or report bug or new feature.Record a coding session without wasting time in editing. was originally published in Towards Dev on Medium, where people are continuing the conversation by highlighting and responding to this story.

react

nextjs

frontend

How to Create a Splash Screen in Next.js

How to display a CSS loader during the first loading of your Nextjs applicationIntroductionWhen a user opens a Next.js application, even if the page corresponding to the url is cached on the server side, the browser will still display a blank page while the page is loading. In this tutorial we will see how to display a CSS loader while the page is loading to improve the user experience.To get more tips like this about Nextjs and React follow me hereBuild in AI speed — Compose enterprise-grade applications, features, and componentsLet’s go 🚀First we are going to create loader.js in /src that will content a CSS of our loader.You can paste the following content:https://medium.com/media/0ac6e953ab4da95c529c5907c2d0f255/hrefSecondly we need to inject this CSS code into the header of our application so that it is loaded by the browser as quickly as possible.To do this update or create _document.js of your application to look like this:https://medium.com/media/51c949adb520ff653f54b13d846ba854/hrefNow the CSS will be apply to #globalLoader div and it’s content.If you are in local, you can limit internet connection of you browser in console to 2G to see the loader below:Finally we need to hide this loader when page is completely load.To do this, create or update your _app.js to look like this:https://medium.com/media/11c6c6c428c57f570ab49f4be57960f5/hrefConclusionNow your application display a loader while loading. Your can rename CSS class name to avoid conflict with your existing global class name.You can also get the code for our awesome loader here.Hire senior Frontend DeveloperClick here to write me if you want to hire senior Frontend developer for your next or current project.How to Create a Splash Screen in Next.js was originally published in Bits and Pieces on Medium, where people are continuing the conversation by highlighting and responding to this story.

ux

react

nextjs

javascript

web-development

Tailwind Copilot | Work with Tailwindcss and Figma faster.

Discover how Taillwind copilot will help you integrate Figma designs as faster than ever before.ContextI am a Frontend developer 👨🏾‍💻 for several years and the integration of Figma design with Tailwindcss is now part of my most common work. I noticed that, a lot of developers I know and myself loss a lot of time on the documentation and configuration file to find classes related to specific width, font size, color and many others properties. My team have tested some plugins to optimize our work with Figma and Tailwindcss but for the most part they don’t work well or try to generate code that needs to be analyzed and modified to produce the expected result 😞Tailwind Copilot: IntroductionMy team decided to create their own utility name Tailwind copilot, based on top of the ones we had tested. A plugin that will help the developer and not try to replace him. We are isolate CSS properties on two categories:Context properties where contains properties that value depend on another element of design, content of element or screen size like position, overflow, width. Take position for example, if you set it to fixed, element will be positioned relative to browser window. Else if you set it to absolute, element will be relative to first relative parent.Non-context properties where is a property that value will not depend of another element in the design in the most cases like font-size, font-weight, color, line-height for example.We will discover in the next part how Tailwind copilot use these difference to help you to become more productive with Figma and Tailwindcss.Tailwind Copilot: FunctionalitiesTailwind copilot will create Tailwindcss config from empty or you existing configuration and explore your Figma design to complete it with color, font-size, font-weight and many other non-context properties values that don’t exist in your initial config.Tailwind copilot will suggest you a light guide-line to sync your design value and your Tailwindcss config when the design change.When you will select item in your design Tailwind copilot will show a light pop-up at the bottom of the screen to suggest you a classes relative to selected element. A non-context properties will by grouped and some non context properties like width or height will be suggest but not grouped.The goal of Tailwind copilot is reduce drastically the number of times where you going on the documentation or in your config file just to see witch class to use for 64px or 12px in border radius. Tailwind copilot will be the copilot and you’re the pilot.Follow me There or on Linkedin to be one of the first to use tailwind copilot.Thank you.Tailwind Copilot | Work with Tailwindcss and Figma faster. was originally published in Bootcamp on Medium, where people are continuing the conversation by highlighting and responding to this story.

css

figma

tailwind

figma-plugin

tailwind-css

Next.js | How to set-up Mixpanel into your Next.js application correctly

Set-up Mixpanel(better alternative to Firebase analytic) into your Next.js application without increasing the loading time of your applicationExample of Mixpanel dashboardIntroductionMixpanel is a tool that allows you to analyze how users interact with your Internet-connected product. It’s designed to make teams more efficient by allowing everyone to analyze user data in real-time to identify trends, understand user behavior, and make decisions about your product.Set-up Mixpanel into Next.js applicationMixpanel provide mixpanel-browser package but their unpacked size is more than 1.Mb. Set-up Mixpanel with this package will increase the bundle size of your application and the time for the browser to loading it.Mixpanel also provide a way to set-up it with script tag. We are going to use this way and next/script provide by Next.js. Create a file name _app.js inside your /pages folder project if you have not already create it and paste this content inside.https://medium.com/media/9d81a0f55e0ba0e9ed2c1fbbcc51a4b3/hreftypeof window != ‘undefined’ && !(window as any).mixpanel is use to innit Mixpanel once and avoid issue below:Mixpanel error: The Mixpanel library has already been downloaded at least once. Ensure that the Mixpanel code snippet only appears once on the page (and is not double-loaded by a tag manager) in order to avoid errors.ConclusionNow Mixpanel is setup correctly, afterInteractive of next/script will fetch and inject it immediately after the page is interactive and you page speed will not decrease. When your are in production, it’s recommend to use {debug: false} you can visit Mixpanel documentation to discover more function that you can use to track user on your website.Follow me to view more tips about React or Next.js. Thank’s.Hire senior Frontend DeveloperClick here to write me if you want to hire senior Frontend developer for your next or current project.Next.js | How to set-up Mixpanel into your Next.js application correctly was originally published in Towards Dev on Medium, where people are continuing the conversation by highlighting and responding to this story.

react

nextjs

mixpanel

analytics

javascript

Next.js | Cache optimization

How to improve the performance and UX of your Next.js application by updating the cache manually.IntroductionIf you export an async function called getStaticProps from a page, Next.js will pre-render this page at build time using the props returned by getStaticProps. If you would like to update the cache, next provide revalidate property that is an optional amount in seconds after which a page re-generation can occur. That is not so good because:The getStaticProps function is called unnecessarily and the same page is regenerate and store in the cache.When the data(content of blog for example) that depend page change, the page don’t change directly and some users can continue to read outdated information.It is sometimes difficult to choose a number of seconds for re-validation. If you make a blog for example, some articles will need to be updated faster than others.SolutionTo solve these different problems you should not use time-based revalidation but need-based revalidation. For a blog for example, we will do this:Cache the articles pages during the build.Disable time based revalidation.Each time an article will be modified from the backoffice, we will then re-generate the concerned article page.Project exampleTo illustrate the solution, we will create a file name /pages/cats-fact/[length].js inside a Next.js project to show the fact about cat(why ? i love a cat). length here is the size of the fact that will be retrieved from the free CatsFacts REST API and displayed.https://medium.com/media/a35cd6fd09ce3704d64086e42a75cf31/hrefWhat file do exactlyDuring the build, three pages are generated by next and cached. /cats-fact/45 /cats-fact/90 and /cats-fact/150The revalidate is disable in getStaticProps to avoid unnecessary regeneration.When the user open facts with new length like /cats-fact/200 for example the page is generate and cache by Next.js.Each time the user opens a url that has already been cached, the same fact is displayedNow we are going to implement custom re-validation system to regenerate some fact in the cache at the specific moment. First create a file name server.js file in the root of your project and paste in this content.https://medium.com/media/5dc6c497b52ff1c10e3c5dabeb7bfe08/hrefWhen application will receive incoming request, if url of this request contain query parameter purge with a value equal to 1 like this:/cats-fact/145?purge=1, the function purgedata(…) will be call to purge cache relative to url called and then handle request normally.Secondly update scripts of your package.json file like this:https://medium.com/media/03a66e0716a8f2e6159f8bae12cda823/hrefIf you’re on window, you can use this line instead at start props."start": "set NODE_ENV=production && node server.js"ConclusionWhen user open /cats-fact/110 for example, a fact is generate and store in the cache. When the url that’s already cached is open the same fact is show. Finally if some page is call with ?purge=1 the cache of this page will be re-validate. With this solution, if you’re work on a blog for example when some information about an article change, you can make a request to get this article with ?purge=1 to re-generate this article. Now unnecessary API call is avoid, the user will never see out of date content but your pages will continue to be cached to be displayed quickly.Hire senior Frontend DeveloperClick here to write me if you want to hire senior Frontend developer for your next or current project.ResourceYou can find Next.js project relative to this article at here.GitHub - sand97/nextjs-cache-optimize: Exemple of project that contain custom server.js to purge cache of getStaticProps manuallyNext.js | Cache optimization was originally published in Towards Dev on Medium, where people are continuing the conversation by highlighting and responding to this story.

ux

react

nodejs

nextjs

front-end-development

Comment devenir développeur en moins de 5 mois ?

Comment devenir développeur en moins de 5 mois ?Tu souhaite avoir un travail bien payé en te formant gratuitement en 5 mois seulement ? Ce guide est fait pour toi.IntroductionÊtre sans emploi ou mal payé est toujours un problème, peu importe votre pays. Heureusement, il existe des métiers comme celui de développeur web frontend qui sont bien payés car la demande sur le marché pour ce poste est très forte. L’objectif de cet article est donc de faire de vous un développeur web frontend et de vous conduire à votre premier emploi à ce poste.C’est quoi un Développeur web Frontend ?Vous connaissez sans doutes des sites web comme Facebook, YouTube ou encore Médium(celui où vous lisez cet article) pour accéder à l’un d’entre eux il faut saisir son lien ou URL dans son navigateur par exemple, www.lespioles.com est le lien a taper pour accéder a la plateforme de recherche de logements Lespioles. Pour obtenir la page qui sera afficher dans votre navigateur après le chargement, plusieurs personne vont donc travailler ensemble.En informatique on désigne par Développeur ses personnes qui contribuent à créer des outils informatiques comme des applications mobiles ou des sites web dont on a parlé. Ceux qui sont spécialisés dans la création d’outils devant utiliser un réseau comme internet pour fonctionner sont donc appelés Développeurs Web. Oui je sais il manque le fameux frontend 😁Examinons de plus près ce qui se passe lorsqu’on tape une URL (www.youtube.com par exemple) dans notre navigateur afin de comprendre quel est la particularité du frontend.Parcours d’une requête à travers internet.Votre navigateur vas envoyer une requête qui va être transmise a un autre ordinateur(à droite sur l’image) appeler serveur, via internet. Le serveur va ensuite effectuer plusieurs traitement comme faire une liste des vidéos qui seront afficher parmi la liste des vidéos disponible et ensuite envoyer deux choses a votre ordinateur à savoir, les information issue de ses traitement(liste de vidéo par exemple) et des fichiers pour expliquer a votre navigateur comment il doivent être afficher.Votre ordinateur ou votre téléphone reçoit alors ses informations et va exécuter les instruction contenu dans les fichier envoyer par le serveur pour vous afficher des vidéo des boutons des texte etc.En dehors de Ternimator les ordinateur ne savent rien faire par eux même il faut donc quelqu’un qui va expliquer a l’ordinateur (le votre ou le serveur) avec des fichier qu’il va rédiger ce qu’il doit faire. Celui qui écrit les fichiers qui vont être exécuter sur le serveur pour dresser une liste de vidéos par exemple est appelé Développeur backend. Vous l’aurez compris celui qui écrit les fichier qui eux seront exécuter par votre ordinateur a vous est appeler Développeur frontend.L’objectif de ce guide est donc de faire de toi en 5mois et sans pré-requis quelqu’un capable d’écrire des fichiers qui seront exécuter par des navigateurs pour qu’ils affiche des vidéo, des images des textes des boutons etc comme sur les site web que tu a l’habitude de consulter.Comment lire cet articleA chaque fois que nous aborderons une notion, il sera fourni un lien vers une formation pour maitriser cette dernière, ainsi que le temps accorder pour terminer la dite formation.Les formations sont fournis dans un ordre qu’il vous faudra respecter. Ne sauter aucune vidéo même si vous pensez maitriser son contenu. Rappeler vous toujours de la mère des études.N’essayer pas de mémoriser les notions de chaque formations mais juste de comprendre.Enfin lisez entièrement l’article avec la même discipline. Si après avoir lu 50% vous vous sentez suffisamment compétent pour ne pas lire le reste, alors vous êtes sur la montagne de la stupidité. Descendez de la et poursuivez l’article.Vous finirez sans doute certaine formations avant le temps accorder pour elles, passer simplement a la formation suivant si cella arrive.Effet Dunning-KrugerC’est partieN’oublier pas il est important de respecter les délais de chaque formation et de ne pas chercher à tout mémoriser.Intégrer une communauté de développeur · · · · 1 jour Il est important afin de ne pas se décourager de faire partie d’un environnement ou on parle de code et ou vous pourrez trouver de l’aide si vous en avez besoin. Voici quelques liens pour intégrer des communautés très actives. a. Communauté 1b. Communauté 2Découverte du HTML · · · · 2 semainesDans cette première formation vous ferez la découverte du HTML qui en gros est juste un langage permettant de structurer d’une page Web. Ici structurer une page web c’est écrire un ensemble d’instructions(ou balises) dans un fichier .html qui pourra ensuite être ouvert et interpréter par un navigateur. Ne vous en faite pas si vous ne comprenez pas tout tout de suite. Suivez ce lien pour commencer la formation ou une autre introduction et des exemple pratique vous seront fourni partant de zéro.Lien de la Formation HTMLDécouverte du CSS · · · · 2 semainesA ce stade vous devriez déjà pouvoir créer une simple page HTML et d’y écrire des balises permettant d’afficher des textes, des images etc dans un navigateur. Maintenant grâce a la prochaine formation vous allez apprendre comment donner du style a ses éléments. Il sera ici question de d’apprendre à changer la couleur d’un texte ou encore la largeur d’un bouton par exemple. Lien de la formation CSSApprentissage du JavaScript · · · · 3semainesLa encore vous aurez droit au même formateur et il sera ici question d’apprendre a rendre les éléments des pages que vous avez appris a créer et styliser précédemment interactif. En d’autre terme faire en sorte que lorsqu’un utilisateur clique sur un bouton par exemple, qu’un texte présent sur la page change de couleur. Lien de la formation JavaScriptPerfectionnement JavaScript · · · · 2 semainesA ce stade vous devriez déjà avoir la capacité de faire une page interactive si vous pratiquer normalement tout les travaux pratique présent dans les formations. Il est a présent question dans cette section de vous faire découvrir les dernières nouveautés du langage JavaScript. Vous rencontrerez certainement certaine notion que vous connaissez déjà mais il est important de terminer cette section pour ne pas avoir de blocage sur la prochaine section.Lien de la formation sur les nouveautés du langage JavaScript.Apprentissage de React · · · · 4 semainesCertain parmi vous se sont sans doute poser la question après la formation sur le HTML, comment créer ses propres balises de façon a avoir une balise appelé <hello/> par exemple et qui afficherait un message de bienvenue. React est en quelque sorte un outil permettant de faire cella. L’objectif ici est de pouvoir créer ses propres balise(composants) et de les réutiliser dans son projet au besoin.Lien de la formation ReactTravaux pratique React · · · · 6 joursLe tutoriel précédent comporte des travaux pratique mais qui ne sont accessible qu’aux membre premium du site Grafikart. Si vous en avez les moyen je vous invite a payer c’est moins de 4 Euro pour un mois et terminer la formation. Sinon vous pouvez suivre ce tutoriel(en Anglais) pour vous faire un peut la main avec React. Lien vers les travaux pratique ReactApprendre a utiliser le TypeScript · · · · 2semainesVous venez d’apprendre a créer vos propre composant réutilisable. Il est a présent temps d’apporter plus de stabilité a vos composant React et a votre code JavaScript en général. L’objectif ici est d’éviter le maximum d’erreur lors du développement avec JavaScript. Lien vers la formation TypeScriptA la découverte de Next.js · · · · 1 semainesUn site c’est avant tout plusieurs pages et depuis le début nous n’utilisons pratiquement qu’une seule page qui s’ouvre sur le localhost. Il est a présent question d’apprendre a utiliser l’outil Next.js pour créer un projet avec une multitude de pages. C’est un outils très simple a utiliser mais fortement demander sur le marcher de l’emploie.Lien de la formation Next.jsPrise en main de Material UI · · · · 2 semainesVous savez créer des composant avec React, les utiliser pour créer des sites web interactif avec Next.js a présent félicitation. Il est a présent temps d’apprendre a utiliser la bibliothèque de composant Material UI pour apprendre a aller plus vite dans la création de vos sites web. Vous pouvez voir cette librairie comme un ensemble de composant(Bouton, Boite de dialogue, etc) que vous pouvez réutiliser dans votre projet de la même façon que les composant que vous avez déjà appris a créer. Lien vers la formation Material UIVous exercer · · · · 4 semainesOrganiser vous a pouvoir faire chaque semaine un projet a savoir partir d’un design qui vous plait ou vous semble jolie et coder le projet ensuite montrer le design et le résultat que vous avez obtenu a vos amis ou des membre de votre famille pour qu’il vous disent si vous avez fait du bon boulot. Ou trouver les design me direz vous ? Eh bien j’ai une préférence pour la communauté Figma ou vous trouverez une multitude de design gratuit avec lesquels vous pourrez vous exercer. Figma CommunityConclusionJ’espère que vous avez pris la peine de terminer toutes les formation ci-dessous(même celle en anglais). Il ne vous reste plus qu’a faire un CV avec marquer en haut en Gras Développeur Web FrontEnd et de postuler a des offres d’emplois sur linkedin par exemple ou dans les entreprise de développement présent dans votre ville(il y en as peut importe la ville ou vous ete).

css

html

nextjs

typescript

Spaces between the elements of a scrollable list

How to create scrolable list and position an element at the bottom of the screen like with column space between, without use static margin of height.Suppose you need to make the view below. The button should always be at the bottom of the screen and the size of the text can change and sometimes be bigger than the height of the screen.If you use a Column like this containing two elements and a spaceBetween like this:Column( mainAxisSize: MainAxisSize.max, mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Container(child: Text('Lorem ipsum...'), color: Colors.black), Container(child: Text('Action'), color: Colors.blue), ])in cases where the height of the text will exceed that of the screen there will be an overflow, part of the text will be invisible and the user will be unable to scroll. So you have two solutions,If you want the button to stay always visible at the bottom of the screen, you can use an Expanded and SingleChildScrollView like this:Column( children: [ Expanded(child: SingleChildScrollView( child: Container( child: Text('Lorem ipsum...'), color: Colors.black), )), Container(child: Text('Action'), color: Colors.blue), ])2. Else If you want the buttons stay always at the bottom of the text but not directly visible when the height of the text is greater than the height of the screen and then user need to scroll to see the button use this another code:SingleChildScrollView( child: Container( constraints: BoxConstraints(minHeight: MediaQuery.of(context).size.height ), child: Column( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Container( child: Text('Lorem ipsum...'), color: Colors.black), Container(child: Text('Action'), color: Colors.blue), ] ), ),)ConclusionIn the second case the button will stay always at the bottom when the text is not greater that screen height. When the screen height is lower that text height, the user can scroll to see the rest of text and the button at the end.Spaces between the elements of a scrollable list was originally published in Bootcamp on Medium, where people are continuing the conversation by highlighting and responding to this story.

ux

dart

design

flutter

mobile-app-development