parallax_sensors_bg 1.0.1 copy "parallax_sensors_bg: ^1.0.1" to clipboard
parallax_sensors_bg: ^1.0.1 copied to clipboard

Flutter package to simplify giving a parallax effect in the background of a page that responds to a corresponding sensor detection.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

import 'example1.dart';
import 'example2.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual,
      overlays: [SystemUiOverlay.bottom]);
  SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp])
      .then((_) {
    runApp(const MyApp());
  });
}

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const Example1(),
      //const Example2(),
    );
  }
}
88
likes
130
pub points
79%
popularity

Publisher

unverified uploader

Flutter package to simplify giving a parallax effect in the background of a page that responds to a corresponding sensor detection.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, sensors_plus

More

Packages that depend on parallax_sensors_bg