00917397380066 project@truinfosys.com

Footer Screen

(footer.dart)

Code Description:

  •  `CommonFooter` Class

The `CommonFooter` class is a Flutter widget that represents a common footer used in multiple screens of the application. It typically displays information about the application version and additional details about the software and its accreditation.

  •  `build` Method

“`dart

@override

Widget build(BuildContext context) {

  // … (Widget tree)

}

“`

– The `build` method constructs the UI for the `CommonFooter` widget.

  •  Body

“`dart

body: FooterView(

  // … (Widget tree for the footer content)

  flex: 1,

),

“`

– The body of the screen is wrapped in a `FooterView`, which allows the content to be scrolled if it exceeds the screen size. The `flex` property is set to 1, which specifies how the available space is distributed between the body and footer.

  • Footer Content

– The footer content is built within the `Footer` widget, and it includes the following elements:

    1. Application Version:

        “`dart

        Text(

          ‘TISROOT(0.0.1),’,

          style: TextStyle(

            color: Colors.blue,

            fontWeight: FontWeight.bold,

            fontSize: 10,

          ),

        ),

        “`

        – This `Text` widget displays the application version (e.g., “TISROOT(0.0.1)”) in blue color with a bold font. The font size is set to 10.

    2. Application Description:

        “`dart

        Text(

          ‘a cloud ERP “MAKEININDIA” software of Trust Infosys Incorporation,’,

          style: TextStyle(

            fontSize: 10,

          ),

        ),

     – This `Text` widget provides a description of the application, indicating that it is a “cloud ERP” with the tagline “MAKEININDIA.” The font size is set to 10.

    3. Accreditation Information:

        “`dart

        Text(

          ‘Govt. of India accredited STARTUPINDIA venture.’,

          style: TextStyle(

            fontSize: 10,

          ),

        ),

        “`

  •  This `Text` widget mentions that the application is accredited by the Government of India as a STARTUPINDIA venture. The font size is set to 10.

The `CommonFooter` widget is designed to be reusable across multiple screens of the application. It provides consistent information about the application’s version and its accreditation, enhancing the user experience and providing essential information about the software.

Audit: