Skip to content

Instantly share code, notes, and snippets.

View januwA's full-sized avatar
🏠
Working from home

januwA

🏠
Working from home
View GitHub Profile
@januwA
januwA / main.dart
Created November 18, 2019 12:35
PageController's viewportFraction property is set to less than 1, and there is a bounce when switching pages.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(home: HomePage());
}
}
import 'package:flutter/material.dart';
import 'package:video_box/video.controller.dart';
import 'package:video_box/video_box.dart';
import 'package:video_player/video_player.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:video_box/video_box.dart';
class MyFullVideoPage extends StatefulWidget {
final VideoController controller;
const MyFullVideoPage({Key key, this.controller}) : super(key: key);
@override
_MyFullVideoPageState createState() => _MyFullVideoPageState();