skip to Main Content

Flutter change material3 button shape

I upgraded the flutter to version 3.10 recently and set useMaterial3: true as its default is true. But I cannot change the button's shape: import 'package:flutter/material.dart'; void main() { runApp(const MyApp()); } class MyApp extends StatelessWidget { const MyApp({super.key}); @override…

VIEW QUESTION

How to use a FilledButton in flutter (Material 3)

link1 (Screenshot) : https://flutter.github.io/samples/web/material_3_demo/#/ link2 (Document) : https://api.flutter.dev/flutter/material/FilledButton-class.html#material.FilledButton.1 flutter doctor [✓] Flutter (Channel stable, 3.3.10, on macOS 12.5.1 21G83 darwin-arm, locale ko-KR) • Flutter version 3.3.10 on channel stable at /Users/username/development/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 135454af32 (8…

VIEW QUESTION

Android Studio – android material design sample code giving missing resources errors

I am trying to run android material design same taken from below https://github.com/material-components/material-components-android but getting these errors : failed :lib:packageDebugResources tokens.xml Can't determine type for tag '<macro name="m3_comp_bottom_app_bar_container_color">?attr/colorSurface</macro>' tokens.xml Can't determine type for tag '<macro name="m3_sys_color_dark_surface_tint">?attr/colorPrimary</macro>' fab_tokens.xml Can't determine type…

VIEW QUESTION
Back To Top
Search