Skip to content

Instantly share code, notes, and snippets.

@ahmetgungor
Created October 21, 2021 18:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmetgungor/071c7a012cb52b23d6b3ff1068eb991d to your computer and use it in GitHub Desktop.
Save ahmetgungor/071c7a012cb52b23d6b3ff1068eb991d to your computer and use it in GitHub Desktop.
Alttan Yukarı Kayan Scrollview
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