Giter Site home page Giter Site logo

iamnijat / fancy-intro-carousel-slider Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 0.0 42 KB

Fancy Intro Carousel Slider package lets you add beautiful intro sliders to your Flutter app.

Home Page: https://pub.dev/packages/fancy_intro_carousel_slider

License: BSD 3-Clause "New" or "Revised" License

Dart 100.00%
carousel-slider dart flutter pubdev

fancy-intro-carousel-slider's Introduction

Fancy Intro Carousel Slider

Cover

Fancy Intro Carousel Slider package lets you add beautiful intro sliders to your Flutter app.

Installation

  1. Add the latest version of package to your pubspec.yaml (and rundart pub get):
dependencies:
  fancy_intro_carousel_slider: ^0.0.3
  1. Import the package and use it in your Flutter App.
import 'package:fancy_intro_carousel_slider/fancy_intro_carousel_slider.dart';

Example

There are a number of properties that you can modify:

  • items
  • dotHeight
  • activeDot
  • disabledDot
  • innerPadding
  • actionButton
  • scrollDirection
  • physics
  • pageController

class FancyIntroCarouselSliderScreen extends StatelessWidget {                                                                                      
  const FancyIntroCarouselSliderScreen({Key? key}) : super(key: key);  
  
  @override  
  Widget build(BuildContext context) {  
    return Scaffold(  
      body: FancyIntroCarouselSlider(

          actionButton: Padding(
            padding: const EdgeInsets.only(bottom: 20),
            child: Padding(
              padding: const EdgeInsets.symmetric(horizontal: 10),
              child: Container(
                width: 300,
                height: 55,
                decoration: AppStyles.mainBlueColorBoxDecorationStyle,
                child: const Material(
                  color: AppPalette.transparentColor,
                  child: Center(
                      child: Text("Let's start",
                          style: AppStyles.whiteColor15spw700NotoSans)),
                ),
              ),
            ),
          ),

          pageController: pageController,
          dotHeight: 8,

          innerPadding: const EdgeInsets.only(left: 4),

          activeDot: AnimatedContainer(
            duration: const Duration(milliseconds: 250),
            margin: const EdgeInsets.only(right: 7),
            height: 8,
            width: 19,
            decoration: BoxDecoration(
              borderRadius: BorderRadius.circular(30),
              color: Colors.blue,
            ),
          ),

          disabledDot: AnimatedContainer(
            duration: const Duration(milliseconds: 250),
            margin: const EdgeInsets.only(right: 7),
            height: 8,
            width: 10,
            decoration: BoxDecoration(
              borderRadius: BorderRadius.circular(30),
              color: Colors.grey,
            ),
          ),
          items: [
           Column(
      children: [
        Container(
          width: 320,
          constraints: const BoxConstraints(maxHeight: 400),
          decoration: BoxDecoration(
              image: DecorationImage(
            image: svg_provider.Svg(img),
            fit: BoxFit.fitWidth,
          )),
        ),
        Padding(
          padding: const EdgeInsets.symmetric(horizontal: 16),
          child: Text(
            title,
            textAlign: TextAlign.center,
            style: AppStyles.mainHeadlineColorw70020spPoppins,
          ),
        ),
        const SizedBox(
          height: 13,
        ),
        Padding(
          padding: const EdgeInsets.symmetric(horizontal: 34),
          child: Text(
            desc,
            textAlign: TextAlign.center,
            style: AppStyles.mainHeadlineColorw50012spPoppinsLineHeight,
          ),
        )
      ],
    )
          ],
        ),
    );  
  }  
}

Next Goals

  • Add animational behaviors to the properties.

  • Add more functionalities to the package.

fancy-intro-carousel-slider's People

Contributors

iamnijat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.