ResponsiveFramework
ResponsiveFramework copied to clipboard
Text is not responsive on a simple stack
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,
)),
),
),
],
);
}
}
Thank you for reporting.