Skip to content

IOS 13.3 TextStyle FontWeight being completely Ignored #49492

Closed

Description

@x4080

Hi, after upgrade my ios to 13.3, my flutter app cannot display bold (compare to before upgrade and in android)

Is it problem with ios 13.3 ? Or there's breaking changes in flutter for ios ? Android works fine

Activity

  1. iapicca commented on Jan 27, 2020

    @iapicca

    Hi @x4080
    can you please provide your flutter doctor -v ,
    and if possible a reproducible minimal code sample.
    Thank you

  2. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Jan 27, 2020
  3. x4080 commented on Jan 28, 2020

    @x4080
    Author

    @iapicca Thanks for quick response,

    Doctor summary (to see all details, run flutter doctor -v):
    [✓] Flutter (Channel master, v1.14.5-pre.35, on Mac OS X 10.14.5 18F132, locale en-ID)
     
    [!] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
        ! Some Android licenses not accepted.  To resolve this, run: flutter doctor --android-licenses
    [✓] Xcode - develop for iOS and macOS (Xcode 11.3)
    [!] Android Studio (version 3.5)
        ✗ Flutter plugin not installed; this adds Flutter specific functionality.
        ✗ Dart plugin not installed; this adds Dart specific functionality.
    [✓] VS Code (version 1.41.1)
    [!] Connected device
        ! No devices available
    
    ! Doctor found issues in 3 categories.
    

    Source is using default flutter create [projectname]

    import 'package:flutter/material.dart';
    
    void main() => runApp(MyApp());
    
    class MyApp extends StatelessWidget {
      // This widget is the root of your application.
      @override
      Widget build(BuildContext context) {
        return MaterialApp(
          title: 'Flutter Demo',
          theme: ThemeData(
            // This is the theme of your application.
            //
            // Try running your application with "flutter run". You'll see the
            // application has a blue toolbar. Then, without quitting the app, try
            // changing the primarySwatch below to Colors.green and then invoke
            // "hot reload" (press "r" in the console where you ran "flutter run",
            // or simply save your changes to "hot reload" in a Flutter IDE).
            // Notice that the counter didn't reset back to zero; the application
            // is not restarted.
            primarySwatch: Colors.blue,
          ),
          home: MyHomePage(title: 'Flutter Demo Home Page'),
        );
      }
    }
    
    class MyHomePage extends StatefulWidget {
      MyHomePage({Key key, this.title}) : super(key: key);
    
      // This widget is the home page of your application. It is stateful, meaning
      // that it has a State object (defined below) that contains fields that affect
      // how it looks.
    
      // This class is the configuration for the state. It holds the values (in this
      // case the title) provided by the parent (in this case the App widget) and
      // used by the build method of the State. Fields in a Widget subclass are
      // always marked "final".
    
      final String title;
    
      @override
      _MyHomePageState createState() => _MyHomePageState();
    }
    
    class _MyHomePageState extends State<MyHomePage> {
      int _counter = 0;
    
      void _incrementCounter() {
        setState(() {
          // This call to setState tells the Flutter framework that something has
          // changed in this State, which causes it to rerun the build method below
          // so that the display can reflect the updated values. If we changed
          // _counter without calling setState(), then the build method would not be
          // called again, and so nothing would appear to happen.
          _counter++;
        });
      }
    
      @override
      Widget build(BuildContext context) {
        // This method is rerun every time setState is called, for instance as done
        // by the _incrementCounter method above.
        //
        // The Flutter framework has been optimized to make rerunning build methods
        // fast, so that you can just rebuild anything that needs updating rather
        // than having to individually change instances of widgets.
        return Scaffold(
          appBar: AppBar(
              // Here we take the value from the MyHomePage object that was created by
              // the App.build method, and use it to set our appbar title.
              title:
                  // Text(widget.title,
                  //           style: Theme.of(context).primaryTextTheme.headline5,)
                  Text(
            widget.title,
            style: TextStyle(fontWeight: FontWeight.bold, fontSize: 25),
          )),
          body: Center(
            // Center is a layout widget. It takes a single child and positions it
            // in the middle of the parent.
            child: Column(
              // Column is also a layout widget. It takes a list of children and
              // arranges them vertically. By default, it sizes itself to fit its
              // children horizontally, and tries to be as tall as its parent.
              //
              // Invoke "debug painting" (press "p" in the console, choose the
              // "Toggle Debug Paint" action from the Flutter Inspector in Android
              // Studio, or the "Toggle Debug Paint" command in Visual Studio Code)
              // to see the wireframe for each widget.
              //
              // Column has various properties to control how it sizes itself and
              // how it positions its children. Here we use mainAxisAlignment to
              // center the children vertically; the main axis here is the vertical
              // axis because Columns are vertical (the cross axis would be
              // horizontal).
              mainAxisAlignment: MainAxisAlignment.center,
              children: <Widget>[
                Text(
                  'You have pushed the button this many times:',
                ),
                Text(
                  '$_counter',
                  style: Theme.of(context).textTheme.headline4,
                ),
              ],
            ),
          ),
          floatingActionButton: FloatingActionButton(
            onPressed: _incrementCounter,
            tooltip: 'Increment',
            child: Icon(Icons.add),
          ), // This trailing comma makes auto-formatting nicer for build methods.
        );
      }
    }
    

    android emulator
    ios simulator 13 3

    Attached the result in ios simulator and android emulator using bold

    Bold is not displaying in IOS

    (edited)

  4. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Jan 28, 2020
  5. pamir72 commented on Jan 28, 2020

    @pamir72

    Confirm. Flutter 1.14.5. iOS 13.3. Font with bold weight (and w500, w600, w700 .....) is not displayed for the emulator and on the real device.

  6. x4080 commented on Jan 28, 2020

    @x4080
    Author

    @pamir72 thanks so its not just me

  7. changed the title [-]IOS 13.3 textstyle headline5 is not bold now[/-] [+]IOS 13.3 textstyle headline5 is not bold now, edit bold is not working not because of headline5[/+] on Jan 28, 2020
  8. pamir72 commented on Jan 28, 2020

    @pamir72

    It's not only headline5. Any with bold for me

  9. added
    a: typographyText rendering, possibly libtxt
    p: material_uimaterial_ui package in flutter/packages
    frameworkflutter/packages/flutter repository. See also f: labels.
    platform-iosiOS applications specifically
    c: regressionIt was better in the past than it is now
    customer: crowdAffects or could affect many people, though not necessarily a specific customer.
    on Jan 28, 2020
  10. calvinmuller commented on Jan 28, 2020

    @calvinmuller
  11. 40 remaining items

  12. dnfield commented on Feb 27, 2020

    @dnfield
    Contributor

    This should be fixed on master now, after #51480

    Can anyone experiencing this pleast test on master and verify?

  13. passsy commented on Feb 28, 2020

    @passsy
    Contributor

    I can verify the fix is working.

    Side note: Upgrading from beta to master wasn't easy due to some recent breaking changes I ran into #48346, #44930, #51435

  14. gliese667c commented on Feb 28, 2020

    @gliese667c

    Verified too, on master commit 1cc8cc299

  15. sanekyy commented on Feb 28, 2020

    @sanekyy

    I confirm, fixed.

  16. scopendo commented on Feb 29, 2020

    @scopendo

    @dnfield will this be expedited to the beta channel, or are the dependencies too big to allow it?

  17. dnfield commented on Feb 29, 2020

    @dnfield
    Contributor
  18. tvolkert commented on Feb 29, 2020

    @tvolkert
    Contributor

    @scopendo it should make it to the beta channel in the next beta release, but it won't be cherry-picked, so the next beta release will also contain the API-breaking changes you see on master.

  19. jlubeck commented on Mar 5, 2020

    @jlubeck
    Contributor

    Hey @tvolkert. I'm new to flutter dev so sorry if this is an obvious question. But are there periodic releases to beta channel or is it just "whenever it happens"? Just trying to figure out if I can wait for this or find an alternative. Thank you!

  20. tvolkert commented on Mar 5, 2020

    @tvolkert
    Contributor

    @jlubeck see https://github.com/flutter/flutter/wiki/Release-process#rolling-the-beta-channel. tldr: beta releases are generally once a month early in the month (will likely be early next week).

    Side-note: we're in the process of defining a new release process that should allow us to publish a calendar so people can plan on our beta and stable releases. Stay tuned 🙂

  21. jlubeck commented on Mar 5, 2020

    @jlubeck
    Contributor

    Nice, thank you @tvolkert !

  22. jlubeck commented on Mar 18, 2020

    @jlubeck
    Contributor

    Nice, beta was published and this is now fixed on beta channel

  23. lock commented on Apr 2, 2020

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  24. locked and limited conversation to collaborators on Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

a: typographyText rendering, possibly libtxtc: regressionIt was better in the past than it is nowcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.dependency: skiaSkia team may need to help usframeworkflutter/packages/flutter repository. See also f: labels.p: material_uimaterial_ui package in flutter/packagesplatform-iosiOS applications specifically

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions