Subhi-Khalife / social_media_recorder

MIT License
28 stars 43 forks source link

Change Fab button color without changing the slider color. #4

Open Nijinsha opened 2 years ago

Nijinsha commented 2 years ago
 Align(
            alignment: Alignment.bottomRight,
            child: SocialMediaRecorder(
              // recordIcon: Container(
              //   height: 65.h,
              //   width: 65.h,
              //   decoration: BoxDecoration(
              //       borderRadius: BorderRadius.circular(65.h), color: Color(0xffF84663)),
              // ),

              backGroundColor: Color(0xffF84663),
              recordIconBackGroundColor: Color(0xffF84663),
              recordIconWhenLockBackGroundColor: Color(0xffF84663),
              recordIcon: Icon(
                Icons.mic,
                color: Colors.white,
              ),
              radius: BorderRadius.circular(100),
              sendRequestFunction: (soundFile) {
                // debugPrint(soundFile.path);
                _ccmController.createMessage(soundFile);
                // Get.to(() => BuysMinutesScreen());
              },
              encode: AudioEncoderType.AAC,
            ),
          ),

Also, I am not able to change icon size.

Subhi-Khalife commented 2 years ago

hello @Nijinsha i will fix it and i will tell you when i finish it

Nijinsha commented 2 years ago

Also when i add background color, it uses the background color for half of the swipe section instead of just the button.