Home > Software engineering >  how to scroll screen in flutter? (vertically Scrollable)
how to scroll screen in flutter? (vertically Scrollable)

Time:10-07

this is my code

@override
  Widget build(BuildContext context) {
    return MaterialApp(
        debugShowCheckedModeBanner: false,
        home: Scaffold(
            body: Column(
              children: <Widget>[
                SizedBox.fromSize(size: Size.fromHeight(25)),
                actionBar(context, currentAddress),
                buildFloatingSearchBar(context),
                Container(

CodePudding user response:

Try SingleChildScrollView() widget.

@override
  Widget build(BuildContext context) {
    return MaterialApp(
        debugShowCheckedModeBanner: false,
        home: Scaffold(
            body: SingleChildScrollView(
              child: Column(
              children: <Widget>[
                SizedBox.fromSize(size: Size.fromHeight(25)),
                actionBar(context, currentAddress),
                buildFloatingSearchBar(context),
                Container(

CodePudding user response:

Wrap your Column into SingleChildScrollView

 body:  SingleChildScrollView(
            child: Column(
                    children: [
  • Related