profile_page 0.0.4 copy "profile_page: ^0.0.4" to clipboard
profile_page: ^0.0.4 copied to clipboard

A new Flutter package for profile page.

profile_page #

A new Flutter package for profile page.

Features #

  • The ProfilePage package will display a complete UI with all of the user's information.

Getting started #

  • To use this package, add profile_page as a dependency in your pubspec.yaml file.

Usage #

  • If you add the request parameters into userData, they will be bound to the UI.

  • The buttonTxt is the text that will appear on the button.

  • The buttonCallBack gives you all the user’s data, so you can just grab it from there and keep going.

Minimal example:

    ProfilePage(
        userData: UserData(
            base64: '',
            name: 'Demo User',
            phoneNo: '+9591111111',
            email: 'test@gamil.com',
            gender: '1',
            dob: '2024-09-01',
            address: 'ygn'),
        buttonTxt: 'Save',
        buttonCallBack: (callbackData) {
          log('ImgData base64   ${callbackData.imgData.base64}');
          log('ImgData imgName  ${callbackData.imgData.imgName}');
          log('UserData Name    ${callbackData.callbackUserData.name}');
          log('UserData Phone   ${callbackData.callbackUserData.phone}');
          log('UserData Email   ${callbackData.callbackUserData.email}');
          log('UserData Gender  ${callbackData.callbackUserData.gender}');
          log('UserData Dob     ${callbackData.callbackUserData.dob}');
          log('UserData Address ${callbackData.callbackUserData.address}');
        },
      ),