pageview_parallax 1.0.0-alpha.2 copy "pageview_parallax: ^1.0.0-alpha.2" to clipboard
pageview_parallax: ^1.0.0-alpha.2 copied to clipboard

A simple library for easily creating a parallax effect. Works with web and mobile.

example/lib/main.dart

import 'package:jramogh/pages/home_page.dart';
import 'package:jramogh/widgets/theme_inherited_widget.dart';
import 'package:flutter/material.dart';

import 'config/themes.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return ThemeSwitcherWidget(
      initialDarkModeOn: true,
      child: Portfolio(),
    );
  }
}

class Portfolio extends StatelessWidget {
  const Portfolio({
    Key key,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Amogh Jahagirdar',
      theme: ThemeSwitcher.of(context).isDarkModeOn
          ? darkTheme(context)
          : lightTheme(context),
      home: HomePage(),
    );
  }
}
8
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A simple library for easily creating a parallax effect. Works with web and mobile.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on pageview_parallax