पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv0.0.4

theme_manager_plus

थीम डेटा अब नहीं है। अपने थीम क्लास के साथ अपने थीम को कस्टमाइज़ करें

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
24
लाइक
20
Pub अंक
150

पैकेज इंस्टॉल करें

flutter pub add theme_manager_plus

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

ThemeManagerPlus डेवलपर्स को कस्टम थीम क्लासेज को परिभाषित करने की अनुमति देकर Flutter ऐप में थीम प्रबंधन को सरल बनाता है, जिससे दोहराए गए थीम डेटा की आवश्यकता नहीं होती है। यह प्लेटफॉर्म के आसपास हल्के और अंधेरे मोड थीम को हैंडल करने के लिए एक साफ और पुन: उपयोगी तरीका प्रदान करता है। इसमें Android, iOS, Web, macOS, Windows और Linux के लिए बिल्ट-इन समर्थन है, जो सुसंगत UI अनुभव सुनिश्चित करता है। इस पैकेज के माध्यम से थीम स्विचिंग और कस्टमाइजेशन को सरल बनाया गया है, जिससे यह न्यूनतम बॉयलरप्लेट के साथ डायनामिक थीमिंग की आवश्यकता वाले ऐप्स के लिए आदर्श है।

उपयोग

  • डायनामिक थीम स्विचिंग
  • प्लेटफॉर्म के बीच विषय सुसंगतता
  • कस्टम थीम क्लास का कार्यान्वयन
  • हल्के और गहरे मोड प्रबंधन
  • एप्लिकेशन-वाइड थीम कस्टमाइज़ेशन

मुख्य विशेषताएँ

  • कस्टम थीम क्लास सपोर्ट
  • एम्बेडेड लाइट/डार्क मोड टॉगल
  • प्लेटफॉर्म-अनुकूल डिज़ाइन
  • न्यूनतम बॉयलरप्लेट
  • मौजूदा कोड के साथ आसान एकीकरण

इनके लिए उपयुक्त

  • जटिल थीमिंग की आवश्यकता वाले Flutter ऐप्स
  • पुनर्उपयोगी थीम तर्क की खोज कर रहे विकासकर्ता
  • बहुप्लेटफॉर्म एप्लिकेशन
  • उपयोगकर्ता थीम पसंदीदा की आवश्यकता वाले ऐप्स
  • स्वच्छ आर्किटेक्चर पर बल देने वाले प्रोजेक्ट

विचार योग्य बातें

  • Flutter के थीम सिस्टम को समझने की आवश्यकता है
  • अतिरिक्त अवस्था प्रबंधन की आवश्यकता हो सकती है
  • सरल स्थिर विषयों के लिए उपयुक्त नहीं
  • सही प्रारंभ के निर्भर करता है
  • मूल सेटअप के अलावा सीमित दस्तावेज़न

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

theme_manager_plus

Say goodbye to the hassle of remembering complex color schemes! With Theme Manager Plus, managing themes is a breeze. Simply create a class for light and dark themes, tweak your desired colors and styles, and enjoy a seamless and modern app experience. No more headaches, just easy and efficient theme management!

simulator-screen-recording-iphone-15-pro-2024-01-31-at-214253_5zDSZU03-ezgif com-video-to-gif-converter

Getting started

First, add theme_manager_plus as a dependency in your pubspec.yaml file

theme_manager_plus: ^[version]

Create Your own class which defines colors and styles which you have to inject e.g

class AppTheme {
  Color? backgroundColor;
  TextStyle? heading;
  TextStyle? subheading;

  AppTheme({this.backgroundColor, this.heading, this.subheading});
}

Wrap your material app with the ThemeMangerWrapper and assign your light and dark theme and set the current theme to initial theme you want

home:ThemeManagerPlus<AppTheme>(
          currentTheme: lightTheme,
          darkTheme: Darktheme,
          lightTheme: lightTheme,
          child: MyApp()),
    );

Access data from theme

context.themeOf<AppTheme>()?.backgroundColor

Note: Replace your class name with the custom class name

Change current theme with theme manager plus

 context.changeCurrentTheme<AppTheme>();

Check current theme is dark theme

bool isDarkMode context.isDarkMode<AppTheme>();

Contribution 🤝

Feel free to contribute and open pull requests. 🙌

Issues and Feedback 🐛

Feel free to post a feature requests or report a bug here.

श्रेणियाँ

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।