79279381

Date: 2024-12-13 19:22:56
Score: 1
Natty:
Report link

follow the code standard Write your app code standard

import 'package:flutter/material.dart';

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

class TestPage extends StatefulWidget {
  const TestPage({super.key});

  @override
  State<TestPage> createState() => _TesState();
}

class _TesState extends State<TestPage> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        backgroundColor: Colors.amber,
        bottomSheet: Padding(
          padding: const EdgeInsets.all(12.0),
          child: Container(
            width: double.infinity,
            child: FloatingActionButton.extended(
              onPressed: () {},
              elevation: 0,
              backgroundColor: Colors.transparent,
              label: const Text(
                "Next",
                style: TextStyle(color: Colors.black),
              ),
            ),
          ),
        ),
      ),
    );
  }
}


Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dilaksha Dissanayake