keepsettings 0.0.2 copy "keepsettings: ^0.0.2" to clipboard
keepsettings: ^0.0.2 copied to clipboard

Settings UI

example/lib/main.dart

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:settings_ui/SettingsScreen.dart';
import 'package:settings_ui/util/ThemeData.dart';

void main() {
  runApp(MyApp());
}

late _MyAppState settingUI;

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  Color uiColor = Colors.deepOrangeAccent;
  bool isDarkMode = true;

  void callSetState() {
    setState(() {});
  }

  @override
  Widget build(BuildContext context) {
    settingUI = this;
    return MaterialApp(
      title: 'Settings UI',
      theme: isDarkMode ? blackTheme(uiColor) : lightTheme(uiColor),
      home: SettingsScreen(),
    );
  }
}
4
likes
70
pub points
60%
popularity

Publisher

unverified uploader

Settings UI

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on keepsettings