Code Monkey home page Code Monkey logo

theming_flutter's Introduction

How to set up dark theme in flutter

This article Explains in detail on how you can set up dark theme using Provider to manage state and shared_preferences to save theme preference. In this repository i have implemented dark theme in a most simple and easy way. Using this method you can implement as many themes as you want and specify your own color schemes as needed.

Pubspec.yaml dependencies

dependencies:
  shared_preferences: ^0.5.10
  provider: ^4.3.2+2

At the time I've implemented this dark theme these were the latest packages avaiable and most probably the newer versions will also work fine. Add a PR if anything gets depricated in the future and I'll merge it.

Output

Dark mode in flutter

theming_flutter's People

Contributors

mateenkiani avatar

Stargazers

Amanpreet Kaur avatar Dhots Dev avatar  avatar Mateen Ahmad avatar SHAOBOJOHN avatar Moeen Channa avatar Diligent Marketing Solutions avatar  avatar Sam avatar Artem Kazancev avatar Abu Nayem avatar Joba Adewumi avatar Abdullah Bahattab avatar Ata amini avatar Tomaz Souza avatar Nebil avatar Khalid Al-Yafey avatar Grayson Crozier avatar Monalisa Moon avatar Candra Billy Sagita avatar Matheus Rodrigues avatar Arvind Kumar avatar Montassare Zekri avatar Navdeep Singh Bhati avatar omer avatar  avatar Dan Arteaga avatar Aaron Kofi Gayi avatar  avatar Kerimberdi Amanov avatar  avatar

Watchers

 avatar Arvind Kumar 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.