showLoader function

Widget showLoader()

Implementation

Widget showLoader() {
  return Scaffold(
    backgroundColor: Colors.white,
    body: Center(
      child: Column(
        mainAxisAlignment: MainAxisAlignment.center,
        children: [
          Container(
            padding: const EdgeInsets.all(20),
            decoration: BoxDecoration(
              color: CommonColors.lightPrimary,
              borderRadius: BorderRadius.circular(20),
            ),
            child: CircularProgressIndicator(
              color: CommonColors.primary,
              strokeWidth: 3,
            ),
          ),
          const SizedBox(height: 20),
          Text(
            'Loading Kurals...',
            style: TextStyle(
              color: CommonColors.primary,
              fontSize: 16,
              fontWeight: FontWeight.w500,
              fontFamily: primaryFontFamily,
            ),
          ),
        ],
      ),
    ),
  );
}