pageview_parallax 1.0.0-alpha.2 pageview_parallax: ^1.0.0-alpha.2 copied to clipboard
A simple library for easily creating a parallax effect. Works with web and mobile.
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(),
);
}
}