ready 2.2.0 copy "ready: ^2.2.0" to clipboard
ready: ^2.2.0 copied to clipboard

Package that contains complete list solution and admin dashboard

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:ready/ready.dart';

import 'dashboard.dart';

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

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  ThemeMode _mode = ThemeMode.dark;
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData.light(),
      darkTheme: ThemeData.dark(),
      localizationsDelegates: [
        ...GlobalMaterialLocalizations.delegates,
        Ready.delegate,
      ],
      themeMode: _mode,
      supportedLocales: const [
        Locale('ar'),
        Locale('en'),
      ],
      locale: const Locale('en'),
      home: DashBoardExample(
        onModeChanged: (value) {
          setState(() {
            _mode = value;
          });
        },
      ),
      debugShowCheckedModeBanner: false,
    );
  }
}
112
likes
80
points
223
downloads

Publisher

verified publishernew-step-apps.com

Weekly Downloads

Package that contains complete list solution and admin dashboard

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

bloc, equatable, flutter, flutter_localizations, flutter_staggered_grid_view, intl

More

Packages that depend on ready