skip to Main Content

My app is failing to run carousel package in flutter

I have added "carousel_pro: ^1.0.0" under dependencies in my pubspec.yaml file and imported in my desired file using "import 'package:carousel_pro/carousel_pro.dart';". Heres the whole file import 'package:carousel_pro/carousel_pro.dart'; import 'package:flutter/material.dart'; class CarouselImages extends StatefulWidget { final List<String> imagesListUrl; CarouselImages(this.imagesListUrl); @override _CarouselImagesState createState()…

VIEW QUESTION

How do you all specify the fontSize in Flutter?

I was specifying the textSize in the textTheme of ThemeData. textTheme: const TextTheme( displayLarge: TextStyle( color: Colors.black, letterSpacing: 4, fontSize: 25, ), displayMedium: TextStyle( color: Colors.black, letterSpacing: 2, fontSize: 18, ), ), However, with this approach, the text may become…

VIEW QUESTION
Back To Top
Search