From 88f4f643c213d5a2edf0cd6e6397d323d6e6db7d Mon Sep 17 00:00:00 2001 From: m-rokh Date: Sun, 16 Oct 2022 22:20:11 +0330 Subject: [PATCH] fix size btn theme data --- .../article/manage_article_controller.dart | 5 ++--- lib/main.dart | 17 +++++++---------- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/lib/controller/article/manage_article_controller.dart b/lib/controller/article/manage_article_controller.dart index 17ad056..02b8ed1 100644 --- a/lib/controller/article/manage_article_controller.dart +++ b/lib/controller/article/manage_article_controller.dart @@ -1,8 +1,7 @@ -import 'package:flutter/cupertino.dart'; + import 'package:get/get.dart'; -import 'package:get_storage/get_storage.dart'; import 'package:tec/constant/api_constant.dart'; -import 'package:tec/constant/storage_const.dart'; + import 'package:tec/models/article_info_model.dart'; import 'package:tec/models/article_model.dart'; import 'package:tec/models/tags_model.dart'; diff --git a/lib/main.dart b/lib/main.dart index d3ecced..f27242b 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -55,7 +55,7 @@ class MyApp extends StatelessWidget { binding: ArticleManagerBinding()), ], // home: Single() - home: SplashScreen()); + home: const SplashScreen()); } ThemeData lightTheme(TextTheme textTheme) { @@ -69,21 +69,18 @@ class MyApp extends StatelessWidget { fillColor: Colors.white, ), elevatedButtonTheme: ElevatedButtonThemeData( - style: ButtonStyle( - textStyle: MaterialStateProperty.resolveWith((states) { - if (states.contains(MaterialState.pressed)) { - return textTheme.headline1; - } - return textTheme.subtitle1; - }), - backgroundColor: MaterialStateProperty.resolveWith((states) { + style: ButtonStyle( + foregroundColor: MaterialStateProperty.all(Colors.white), + backgroundColor: MaterialStateProperty.resolveWith( + (states) { if (states.contains(MaterialState.pressed)) { return SolidColors.seeMore; } return SolidColors.primeryColor; - }), + }, ), ), + ), fontFamily: 'dana', brightness: Brightness.light, textTheme: const TextTheme(