This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'dart:math' as math; | |
| //NOTE: this widget is designed specifically to go OVER a slider | |
| //the idea is that the slider takes you to certain positions and this should give you some idea of what those positions are | |
| //In order to meet it's goals as best as possible we MUST | |
| //1. fill the entirety of the totalHeight | |
| // - otherwise the overlay won't match the slider and it won't be helpful |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| import 'package:flutter_sticky_header/flutter_sticky_header.dart'; | |
| //-----Start App | |
| void main() => runApp(MyApp()); | |
| //-----Entry Point | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| SliverPersistentHeader( | |
| pinned: true, | |
| floating: true, | |
| delegate: OurDelegate( | |
| toolBarHeight: MediaQuery.of(context).padding.top, | |
| openHeight: 250, | |
| closedHeight: 40, | |
| ), | |
| ), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| void main() => runApp(MyApp()); | |
| double totalHeight; | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( |
OlderNewer