ResponsiveFramework icon indicating copy to clipboard operation
ResponsiveFramework copied to clipboard

Text is not responsive on a simple stack

Open p1erre opened this issue 4 years ago • 1 comments

On the following simple section widget, I can't get the text to be responsive. It neither resize nor rescale.

I am using responsive_framework: ^0.1.4 on Flutter 2.2.3

import 'package:flutter/material.dart';
import 'package:google_fonts/google_fonts.dart';
import 'package:minimal/sections/section.dart';

class HeroSection extends StatelessWidget {
  const HeroSection({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Section(desktop: desktop(), mobile: desktop());
  }

  Widget desktop() {
    return Stack(
      children: [
        Image.asset(
          'assets/sections/hero/background_all.jpeg',
        ),
        Positioned(
          top: 100,
          left: 20,
          child: Text(
            'Empieza tu negocio Online',
            style: GoogleFonts.dmSans(
                textStyle: TextStyle(
              fontSize: 48,
            )),
          ),
        ),
      ],
    );
  }
}

p1erre avatar Jul 24 '21 00:07 p1erre

Thank you for reporting.

rayliverified avatar Jul 28 '21 02:07 rayliverified