skip to Main Content

Flutter – MainAxisAlignment.spaceBetween or any MainAxisAligment is not working at all

The MainAxisAlignment.spaceBetween inside Widget2 just does not work. importantWidget(): Widget importantWidget( BuildContext context) { return Column(children: [ Padding( padding: const EdgeInsets.all(design.ComponentSpacing.small), child: Column(children: [ _widget(context), Row( mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ _widget1(), _widget2(context), ], ), _widget3(context), ])), const design.HorizontalDivider(), ]); }…

VIEW QUESTION

Flutter – Change the icon of BackButon() in my appbar

appBar: AppBar( leading: BackButton( onPressed: () { Get.off(exercisePage()); }, ), shape: RoundedRectangleBorder( borderRadius: BorderRadius.only( bottomLeft: Radius.circular(30), bottomRight: Radius.circular(30)), ), automaticallyImplyLeading: false, title: Padding( padding: const EdgeInsets.only(left: 25), child: Text( 'Regular exercise', style: TextStyle( fontFamily: 'FontMain', fontSize: 22, color: Colors.indigo), ),…

VIEW QUESTION

TextTheme' is from 'package:flutter/src/material/text_theme.dart'

../../../.pub-cache/hosted/pub.dev/getwidget-2.1.1/lib/components/avatar/gf_avatar.dart:89:51: Error: The getter 'subtitle1' isn't defined for the class 'TextTheme'. 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/Library/flutter/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'subtitle1'. TextStyle? textStyle = theme.primaryTextTheme.subtitle1?.copyWith( ^^^^^^^^^…

VIEW QUESTION
Back To Top
Search