|9| Transform Slider
Transform Slider: import 'dart:math' ; import 'package:flutter/material.dart' ; void main() { runApp( MyApp ()); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp ( debugShowCheckedModeBanner: false , home: MyHome (), ); } } class MyHome extends StatefulWidget { @override _MyHomeState createState() => _MyHomeState (); } class _MyHomeState extends State<MyHome> { PageController pageController ; double viewportFraction = 0.8 ; double pageOffset = 0 ; @override void initState() { super .initState(); pageController = PageController (initialPage: 0 , viewportFraction: viewportFraction ) ..addListener(() { setState(() { pageOffset = pageController . page ; }); }); } @override Widget build(BuildContext context) { return Scaffold ( appBar: AppBar ( title: Text ( "Transform Slider" ...