keyboard_aware_scrollview 0.1.0 copy "keyboard_aware_scrollview: ^0.1.0" to clipboard
keyboard_aware_scrollview: ^0.1.0 copied to clipboard

A ScrollView wrapper that automatically adjusts its size when the keyboard appears.

example/main.dart

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

void main() {
  runApp(
    MaterialApp(
      debugShowCheckedModeBanner: false,
      home: const Test(),
    ),
  );
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      resizeToAvoidBottomInset: false,
      appBar: AppBar(
        title: const Text(
          'Keyboard Aware Scrollview Example',
          style: TextStyle(fontSize: 18),
        ),
      ),
      body: KeyboardAwareScrollView(
        spacing: 48,
        scrollPadding: EdgeInsets.symmetric(horizontal: 24),
        children: [
          TextField(
            decoration: InputDecoration(
              border: OutlineInputBorder(),
            ),
          ),
          Text(
            'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ' *
                15,
          ),
        ],
      ),
    );
  }
}
2
likes
160
points
15
downloads

Publisher

verified publishernorbertcsorgo.me

Weekly Downloads

A ScrollView wrapper that automatically adjusts its size when the keyboard appears.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

collection, flutter

More

Packages that depend on keyboard_aware_scrollview