Posts

Flutter layout

In this blog post, we will explore some of the key concepts and techniques used in Flutter layout and provide examples of how to build a layout for a Flutter application. Widgets and Elements Widgets are the building blocks of a Flutter UI. A widget can be thought of as a self-contained unit of UI, such as a button or a text field. Elements are the instances of widgets that are displayed on the screen. For example, if you have a button widget in your Flutter UI, there will be an element that represents that button on the screen. Layout Widgets Layout widgets are widgets that are specifically designed to control the positioning and sizing of other widgets in a Flutter UI. The most commonly used layout widgets in Flutter are: Container: The Container widget is used to create a rectangular box in a Flutter application. It can be used to add padding, margins, and borders to the widget it contains. Row: The Row widget is used to display a horizontal row of widgets in a Flutter application.

Flutter Widgets

Flutter is an open-source UI toolkit for building natively compiled applications for mobile, web, and desktop from a single codebase. One of the key features of Flutter is its rich set of widgets, which enable developers to build beautiful and responsive user interfaces for their applications. In this blog post, we will explore some of the most commonly used widgets in Flutter and provide examples of how they can be used to build engaging and user-friendly interfaces. Text Widget The Text widget is used to display text in a Flutter application. It allows developers to customize the font size, color, and style of the text. Here is an example of how to use the Text widget: dart: Text( 'Hello, world!', style: TextStyle( fontSize: 20.0, fontWeight: FontWeight.bold, color: Colors.blue, ), ) Image Widget The Image widget is used to display images in a Flutter application. It supports a variety of image formats, including JPEG, PNG, and GIF. Here is an example of how

Diferrence between flutter and react native

In the world of mobile app development, there are two popular frameworks that have gained significant traction in recent years: Flutter and React Native. Both these frameworks allow developers to build high-performance, cross-platform mobile applications. However, there are some fundamental differences between the two that developers should be aware of when choosing which one to use. Flutter: Flutter is an open-source mobile application development framework created by Google. It was launched in 2017 and has quickly become one of the most popular mobile development frameworks, especially for building beautiful and high-performance mobile applications with a single codebase. Flutter uses the Dart programming language, which is also developed by Google. Pros of flutter: Flutter provides a rich set of customizable widgets that allow developers to create stunning and responsive UI designs. Flutter offers a "hot reload" feature, which allows developers to see the changes in their

Positions in css || relative || absolute || fixed || sticky || static positions

Image
Position in CSS:   The position property specifies the type of position for our element. There are 5 position styles in CSS: static relative fixed absolute sticky Elements are also then positioned using top, bottom left and right properties which you can use first you need to set a position that works differently according to position type. < body >     < div class = "normal" >        First div     </ div >     < div class = "normal" >        second div     </ div >     < div class = "static" >        div with static position     </ div > </ body > Common CSS: .normal {     width : 300px ;     height : 150px ;     background-color : azure ;     margin : 20px ;     border : 3px solid black ;     padding : 10px ; } Position : static; Html elements position static by default . Top, bottom,right,left properties show no effect on the element.It is positioned div according to the normal flow of the page. .stat

How to format in HTML

How to formatting in the HTML HTML language give tags to the user to format the text used on the web pages.  The tag syntax is the same as for the same tags in HTML. Following are the some tags used on the HTML to format the text. Bold tag :     Used to bold the text. Syntax: <b> Example: <b>bold</b> Output: bold Strong  tag :     Used to show the important words. Syntax: <strong> Example: <strong>strong</strong> Output:   strong italic tag :     Used to show italic style of text. Syntax: <i> Example: <i>bold</i> Output:   bold Emphasized tag :     Used to emphasized the text. Syntax: <em> Example: <em>Emphasized</em> Output: Emphasized Mark tag :     Used to mark the text. Syntax: <mark> Example: <mark>Mark</mark> Output:   Mark       small tag :     Used to smaller text. Syntax: <small> Example: <small>Small</small> Output:    Small del tag :     Used to delete the text. Synta