centered_singlechildscrollview 0.2.0 copy "centered_singlechildscrollview: ^0.2.0" to clipboard
centered_singlechildscrollview: ^0.2.0 copied to clipboard

You can choose distribution of children on scrollDirection by specifying mainAxisAlignment like Column.

example/lib/main.dart

import 'package:centered_singlechildscrollview/centered_singlechildscrollview.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: const CenteredSingleChildScrollView(
        children: [
          CircularProgressIndicator(),
        ],
      ),
    );
  }
}
2
likes
150
points
187
downloads

Publisher

unverified uploader

Weekly Downloads

You can choose distribution of children on scrollDirection by specifying mainAxisAlignment like Column.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on centered_singlechildscrollview