fittor 1.0.10 copy "fittor: ^1.0.10" to clipboard
fittor: ^1.0.10 copied to clipboard

A Flutter package for responsive UIs and state management. Adapts to screen sizes and orientations.

example/lib/main.dart

import 'package:fittor/fittor.dart';
import 'package:flutter/material.dart';
import 'package:test/home.dart';

import 'app/bindings/fit_bindings.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await FittorStore.init();
  FittorStore.getString('name');
  runApp(MyApp());
}

class MyApp extends StatelessWidget with FittorAppMixin {
  MyApp({super.key});

  @override
  Widget responsive(BuildContext context) {
    return FitInitializer(
      initialBindings: [AppBindings()],
      child: MaterialApp(
        debugShowCheckedModeBanner: true,
        title: 'Responsive Demo',
        theme: ThemeData(primarySwatch: Colors.blue),
        home: ConnectivityWrapper(
          ignoreOfflineState: false,
          onConnectivityChanged: (status) {
            debugPrint('Connectivity status: $status');
          },
          child: const HomeScreen(),
        ),
      ),
    );
  }
}
9
likes
0
points
60
downloads

Publisher

verified publishermushthak.com

Weekly Downloads

A Flutter package for responsive UIs and state management. Adapts to screen sizes and orientations.

Repository (GitHub)
View/report issues

Topics

#responsive #connectivity #key-value-storage #state-management #currency-formatting

Funding

Consider supporting this project:

github.com

License

unknown (license)

Dependencies

args, flutter, path, path_provider

More

Packages that depend on fittor