Created
October 21, 2021 18:10
-
-
Save ahmetgungor/071c7a012cb52b23d6b3ff1068eb991d to your computer and use it in GitHub Desktop.
Alttan Yukarı Kayan Scrollview
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'; | |
class AnaEkran extends StatefulWidget { | |
const AnaEkran({Key? key}) : super(key: key); | |
@override | |
_AnaEkranState createState() => _AnaEkranState(); | |
} | |
class _AnaEkranState extends State<AnaEkran> { | |
@override | |
Widget build(BuildContext context) { | |
return Scaffold( | |
backgroundColor: Colors.brown.shade50, | |
body: Stack( | |
children: [ | |
Container(color: Colors.lime,child: const Text("sadasdasd"),), | |
const Text("denemeasdasd"), | |
const SizedBox(height: 200,), | |
DraggableScrollableSheet( | |
initialChildSize: 0.40, | |
minChildSize: 0.05, | |
builder: (BuildContext context, ScrollController scrollController) { | |
return Container( | |
color: Colors.lime, | |
child: ListView( | |
controller: scrollController, | |
children: const [ | |
Text("asdasd"), | |
], | |
), | |
); | |
}), | |
], | |
) | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment