PinCodeSlimWidget constructor

PinCodeSlimWidget(
  1. PinCodeProvider pinCodeProvider, {
  2. Color? backgroundColor,
  3. Key? key,
})

Implementation

PinCodeSlimWidget(PinCodeProvider pinCodeProvider,
    {Color? backgroundColor, Key? key})
    : super(
          provider: pinCodeProvider,
          leftIcon: (pinCodeProvider.isLoading)
              ? Center(
                  child: SizedBox(
                      child: CircularProgressIndicator(),
                      height: 30,
                      width: 30),
                )
              : PinCodeIcon(size: 30.0),
          headerText: const Text(StringConstants.PIN_CODES_MANAGE_PIN_CODES,
              style: TextStyle(
                  fontSize: 20, color: WidgetStyleConstants.darkTextColor)),
          rightIcon: Builder(
              builder: (context) => IconButton(
                    icon: const Icon(
                      BootstrapIcons.chevron_right,
                      color: Colors.black,
                    ),
                    onPressed: () => {
                      showCupertinoModalBottomSheet(
                        backgroundColor: Colors.transparent,
                        context: context,
                        expand: true,
                        enableDrag: true,
                        builder: (context) =>
                            PinCodeListView(provider: pinCodeProvider),
                      )
                    },
                  )),
          key: key);